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.001757/0.001758, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001886/0.001886, allocations: 202.8 kB / 16.79 MB, free: 6.84 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.174/1.174, allocations: 205.1 MB / 222.6 MB, free: 4.742 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.321/0.321, allocations: 43.5 MB / 313.5 MB, free: 8.324 MB / 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.001434/0.001434, allocations: 66.56 kB / 382.1 MB, free: 8.395 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1192, allocations: 57.77 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001606/0.1208, allocations: 0.6087 MB / 440.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002461/0.1211, allocations: 69.44 kB / 440.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.213e-05/0.1211, allocations: 0 / 440.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.237e-05/0.1211, allocations: 4 kB / 440.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001799/0.1213, allocations: 7.984 kB / 440.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.576e-05/0.1213, allocations: 8 kB / 440.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.674e-05/0.1214, allocations: 7.875 kB / 440.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.1214, allocations: 7.984 kB / 440.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.824e-05/0.1214, allocations: 4 kB / 440.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.216e-05/0.1215, allocations: 3.984 kB / 440.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.1215, allocations: 4 kB / 440.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.222e-05/0.1216, allocations: 15.98 kB / 440.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.446e-06/0.1216, allocations: 0 / 440.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.406e-05/0.1216, allocations: 7.938 kB / 440.7 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.203e-05/0.1217, allocations: 23.95 kB / 440.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.1217, allocations: 0 / 440.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1217, allocations: 4 kB / 440.7 MB, free: 13.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.1217, allocations: 0 / 440.7 MB, free: 13.74 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.0002922/0.122, allocations: 319.8 kB / 441 MB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1221, allocations: 12.02 kB / 441 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.766e-05/0.1221, allocations: 38.69 kB / 441 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.229e-05/0.1221, allocations: 4.938 kB / 441 MB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.1223, allocations: 164.3 kB / 441.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.562e-06/0.1223, allocations: 384 / 441.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.1223, allocations: 384 / 441.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.236e-05/0.1224, allocations: 46.19 kB / 441.3 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.1224, allocations: 7.875 kB / 441.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.167e-06/0.1224, allocations: 4 kB / 441.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1224, allocations: 0 / 441.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.114e-05/0.1225, allocations: 4 kB / 441.3 MB, free: 13.05 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001441/0.1226, allocations: 153.7 kB / 441.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.1228, allocations: 38.55 kB / 441.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.333e-05/0.1228, allocations: 12.86 kB / 441.5 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003219/0.1231, allocations: 113.1 kB / 441.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.1232, allocations: 34.56 kB / 441.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1232, allocations: 0 / 441.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.001253/0.1244, allocations: 193.3 kB / 441.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.1245, allocations: 51.41 kB / 441.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.086e-05/0.1245, allocations: 89.86 kB / 441.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.456e-05/0.1245, allocations: 29.7 kB / 442 MB, free: 12.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.284e-05/0.1246, allocations: 80.27 kB / 442 MB, free: 12.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.101e-05/0.1246, allocations: 23.73 kB / 442.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.792e-05/0.1246, allocations: 17.72 kB / 442.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1248, allocations: 310.8 kB / 442.4 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.839e-05/0.1249, allocations: 19.98 kB / 442.4 MB, free: 11.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.978e-05/0.1249, allocations: 23.97 kB / 442.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.1251, allocations: 49.02 kB / 442.5 MB, free: 11.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.1251, allocations: 4 kB / 442.5 MB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000179/0.1253, allocations: 77.55 kB / 442.6 MB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.1253, allocations: 4 kB / 442.6 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-06/0.1253, allocations: 0 / 442.6 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1253, allocations: 7.984 kB / 442.6 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.1254, allocations: 11.98 kB / 442.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.1255, allocations: 0 / 442.6 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.354e-05/0.1255, allocations: 8 kB / 442.6 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.1256, allocations: 8 kB / 442.6 MB, free: 11.56 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 6.51e-05/0.1256, allocations: 117.7 kB / 442.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.171e-05/0.1256, allocations: 3.938 kB / 442.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002409/0.1259, allocations: 93.06 kB / 442.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1259, allocations: 0 / 442.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1259, allocations: 4 kB / 442.8 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.1259, allocations: 3.984 kB / 442.8 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006527/0.1266, allocations: 355.3 kB / 443.2 MB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1266, allocations: 0 / 443.2 MB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.419e-05/0.1267, allocations: 11.98 kB / 443.2 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1267, allocations: 8.031 kB / 443.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.1267, allocations: 0 / 443.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.1267, allocations: 0 / 443.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1267, allocations: 3.938 kB / 443.2 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002121/0.1269, allocations: 184.4 kB / 443.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.284e-05/0.127, allocations: 77.17 kB / 443.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.127, allocations: 11.98 kB / 443.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001001/0.1271, allocations: 4 kB / 443.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.361e-05/0.1271, allocations: 7.984 kB / 443.5 MB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.1271, allocations: 0 / 443.5 MB, free: 10.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.679e-05/0.1272, allocations: 79.28 kB / 443.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1272, allocations: 0 / 443.5 MB, free: 10.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1274, allocations: 12 kB / 443.6 MB, free: 10.49 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.0005126/0.1279, allocations: 0.7249 MB / 444.3 MB, free: 9.738 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001972/0.1281, allocations: 47.95 kB / 444.3 MB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1281, allocations: 0 / 444.3 MB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.494e-05/0.1282, allocations: 27.92 kB / 444.4 MB, free: 9.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.1284, allocations: 8 kB / 444.4 MB, free: 9.656 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005019/0.1289, allocations: 166.9 kB / 444.5 MB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.1292, allocations: 0.6809 MB / 445.2 MB, free: 8.742 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.388e-05/0.1292, allocations: 8.062 kB / 445.2 MB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.039e-05/0.1293, allocations: 11.44 kB / 445.2 MB, free: 8.723 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1293, allocations: 0 / 445.2 MB, free: 8.723 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5153/0.6446, allocations: 1.332 MB / 446.6 MB, free: 7.387 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/0.6449, allocations: 204.6 kB / 446.8 MB, free: 7.125 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/2.215, allocations: 4 kB / 446.8 MB, free: 7.121 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","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches