Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001104, allocations: 108.8 kB / 16.41 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 189.5 kB / 17.34 MB, free: 5.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2057/0.2057, allocations: 43.53 MB / 314.1 MB, free: 468 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.91 kB / 441.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1123, allocations: 57.8 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001711/0.114, allocations: 0.5341 MB / 499.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002771/0.1143, allocations: 68.33 kB / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.303e-05/0.1144, allocations: 0 / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.806e-05/0.1144, allocations: 3.938 kB / 499.7 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002326/0.1147, allocations: 15.91 kB / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.464e-05/0.1147, allocations: 7.938 kB / 499.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.66e-05/0.1148, allocations: 7.984 kB / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.623e-05/0.1148, allocations: 0 / 499.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.99e-05/0.1148, allocations: 4 kB / 499.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.214e-05/0.1149, allocations: 0 / 499.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.021e-05/0.1149, allocations: 0 / 499.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.897e-05/0.115, allocations: 31.97 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.166e-05/0.115, allocations: 3.938 kB / 499.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.194e-05/0.115, allocations: 7.984 kB / 499.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.045e-05/0.1151, allocations: 11.98 kB / 499.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1151, allocations: 0 / 499.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.1151, allocations: 0 / 499.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1152, allocations: 3.938 kB / 499.8 MB, free: 11.59 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003288/0.1155, allocations: 331.5 kB / 0.4884 GB, free: 11.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.1155, allocations: 15.83 kB / 0.4884 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.398e-05/0.1156, allocations: 38.67 kB / 0.4885 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.362e-05/0.1156, allocations: 4.938 kB / 0.4885 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.1157, allocations: 164.4 kB / 0.4886 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.1158, allocations: 384 / 0.4886 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.811e-05/0.1158, allocations: 384 / 0.4886 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.736e-05/0.1159, allocations: 38.25 kB / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.1159, allocations: 3.938 kB / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.1159, allocations: 0 / 0.4887 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.1159, allocations: 4 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.534e-05/0.116, allocations: 7.984 kB / 0.4887 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001643/0.1161, allocations: 149.7 kB / 0.4888 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/0.1164, allocations: 42.55 kB / 0.4889 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.484e-05/0.1164, allocations: 8.859 kB / 0.4889 GB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003613/0.1168, allocations: 117.1 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.1168, allocations: 38.56 kB / 0.489 GB, free: 10.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1168, allocations: 0 / 0.489 GB, free: 10.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.001242/0.1181, allocations: 181.3 kB / 0.4892 GB, free: 10.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.373e-05/0.1181, allocations: 55.41 kB / 0.4892 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.966e-05/0.1182, allocations: 97.84 kB / 0.4893 GB, free: 10.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1182, allocations: 25.7 kB / 0.4894 GB, free: 10.06 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.395e-05/0.1182, allocations: 80.14 kB / 0.4894 GB, free: 9.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.1183, allocations: 19.75 kB / 0.4895 GB, free: 9.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-05/0.1183, allocations: 13.72 kB / 0.4895 GB, free: 9.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.1184, allocations: 318.8 kB / 0.4898 GB, free: 9.621 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.603e-05/0.1185, allocations: 16.11 kB / 0.4898 GB, free: 9.605 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.483e-05/0.1186, allocations: 28.05 kB / 0.4898 GB, free: 9.578 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.1188, allocations: 44.77 kB / 0.4899 GB, free: 9.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.1188, allocations: 4 kB / 0.4899 GB, free: 9.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002072/0.119, allocations: 81.59 kB / 0.4899 GB, free: 9.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.119, allocations: 4 kB / 0.49 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.119, allocations: 0 / 0.49 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.119, allocations: 4 kB / 0.49 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/0.1192, allocations: 19.92 kB / 0.49 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.1192, allocations: 0 / 0.49 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.4e-05/0.1193, allocations: 7.984 kB / 0.49 GB, free: 9.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.1193, allocations: 0 / 0.49 GB, free: 9.406 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.272e-05/0.1194, allocations: 121.7 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.515e-05/0.1194, allocations: 7.844 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002643/0.1197, allocations: 89.2 kB / 0.4902 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1197, allocations: 4 kB / 0.4902 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1197, allocations: 0 / 0.4902 GB, free: 9.168 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1197, allocations: 3.938 kB / 0.4902 GB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007157/0.1204, allocations: 355.5 kB / 0.4905 GB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1204, allocations: 4 kB / 0.4905 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.378e-05/0.1205, allocations: 11.98 kB / 0.4906 GB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.1206, allocations: 4.281 kB / 0.4906 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.1206, allocations: 7.984 kB / 0.4906 GB, free: 8.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.1206, allocations: 4 kB / 0.4906 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1206, allocations: 0 / 0.4906 GB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002537/0.1208, allocations: 190.6 kB / 0.4907 GB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.1209, allocations: 77.11 kB / 0.4908 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.1209, allocations: 0 / 0.4908 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.121, allocations: 11.98 kB / 0.4908 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.121, allocations: 4 kB / 0.4908 GB, free: 8.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.1211, allocations: 0 / 0.4908 GB, free: 8.414 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.809e-05/0.1211, allocations: 75.28 kB / 0.4909 GB, free: 8.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1211, allocations: 4.094 kB / 0.4909 GB, free: 8.336 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.1213, allocations: 8 kB / 0.4909 GB, free: 8.328 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005431/0.1219, allocations: 0.717 MB / 0.4916 GB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002203/0.1221, allocations: 47.97 kB / 0.4917 GB, free: 7.531 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1221, allocations: 0 / 0.4917 GB, free: 7.531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.894e-05/0.1222, allocations: 31.91 kB / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.1225, allocations: 2.656 kB / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005744/0.1231, allocations: 167.5 kB / 0.4919 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.1233, allocations: 0.6807 MB / 0.4925 GB, free: 6.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.05e-05/0.1234, allocations: 3.938 kB / 0.4925 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.815e-05/0.1234, allocations: 23.42 kB / 0.4925 GB, free: 6.559 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1234, allocations: 0 / 0.4925 GB, free: 6.559 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1411, allocations: 1.489 MB / 0.494 GB, free: 5.066 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.692, allocations: 7.266 kB / 0.494 GB, free: 5.062 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep_fmu --startTime=0 --stopTime=1.3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestUtilities_TestRegStep.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches