Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegStep,fileNamePrefix="ModelicaTest_4_0_0_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.001094/0.001094, allocations: 106.4 kB / 17.78 MB, free: 5.289 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.001162/0.001162, allocations: 187.9 kB / 18.7 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2146/0.2146, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 71.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3511/0.3526, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegStep): time 0.001529/0.3541, allocations: 0.4918 MB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003218/0.3545, allocations: 106.8 kB / 0.519 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.867e-05/0.3545, allocations: 0 / 0.519 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.322e-05/0.3545, allocations: 0 / 0.519 GB, free: 2.922 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.3548, allocations: 19.72 kB / 0.519 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.767e-05/0.3548, allocations: 2.062 kB / 0.519 GB, free: 2.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.662e-05/0.3548, allocations: 8.453 kB / 0.519 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.424e-05/0.3549, allocations: 6.188 kB / 0.519 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.3549, allocations: 2.125 kB / 0.519 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.501e-05/0.355, allocations: 5.703 kB / 0.519 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.144e-05/0.355, allocations: 0 / 0.519 GB, free: 2.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.73e-05/0.3551, allocations: 20.97 kB / 0.519 GB, free: 2.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.076e-05/0.3551, allocations: 5.219 kB / 0.5191 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.216e-05/0.3551, allocations: 0.6094 kB / 0.5191 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.566e-05/0.3552, allocations: 28.25 kB / 0.5191 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.3552, allocations: 1.156 kB / 0.5191 GB, free: 2.875 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3552, allocations: 0 / 0.5191 GB, free: 2.875 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.926e-06/0.3552, allocations: 0 / 0.5191 GB, free: 2.875 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.0002429/0.3555, allocations: 320.8 kB / 0.5194 GB, free: 2.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3555, allocations: 9.594 kB / 0.5194 GB, free: 2.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.253e-05/0.3556, allocations: 31.41 kB / 0.5194 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.293e-05/0.3556, allocations: 2.219 kB / 0.5194 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.766e-05/0.3557, allocations: 162.9 kB / 0.5196 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.3557, allocations: 8.375 kB / 0.5196 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.027e-05/0.3557, allocations: 2.625 kB / 0.5196 GB, free: 2.277 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.692e-05/0.3558, allocations: 36.22 kB / 0.5196 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3558, allocations: 4.969 kB / 0.5196 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.3558, allocations: 0.75 kB / 0.5196 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3558, allocations: 1.156 kB / 0.5196 GB, free: 2.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.484e-05/0.3559, allocations: 10.02 kB / 0.5196 GB, free: 2.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.356, allocations: 149 kB / 0.5198 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3562, allocations: 38.88 kB / 0.5198 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.748e-05/0.3562, allocations: 18.94 kB / 0.5198 GB, free: 2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003266/0.3566, allocations: 116.8 kB / 0.52 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.412e-05/0.3566, allocations: 32.17 kB / 0.52 GB, free: 1.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 2.014e-06/0.3566, allocations: 4 kB / 0.52 GB, free: 1.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0012/0.3578, allocations: 185.5 kB / 0.5202 GB, free: 1.801 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.284e-05/0.3578, allocations: 52.72 kB / 0.5202 GB, free: 1.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.011e-05/0.3579, allocations: 96.34 kB / 0.5203 GB, free: 1.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.3579, allocations: 25.7 kB / 0.5203 GB, free: 1.605 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.24e-05/0.3579, allocations: 81.67 kB / 0.5204 GB, free: 1.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.658e-05/0.3579, allocations: 18.3 kB / 0.5204 GB, free: 1.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.358, allocations: 19.91 kB / 0.5204 GB, free: 1.488 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.128e-05/0.358, allocations: 317.1 kB / 0.5207 GB, free: 1.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.109e-05/0.3581, allocations: 19.81 kB / 0.5208 GB, free: 1.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.108e-05/0.3582, allocations: 16.86 kB / 0.5208 GB, free: 1.168 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001441/0.3583, allocations: 51.39 kB / 0.5208 GB, free: 1.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3584, allocations: 4 kB / 0.5208 GB, free: 1.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002048/0.3586, allocations: 86.39 kB / 0.5209 GB, free: 1.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.3586, allocations: 5.609 kB / 0.5209 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3586, allocations: 0 / 0.5209 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.3586, allocations: 0 / 0.5209 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.3587, allocations: 14.81 kB / 0.5209 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.3588, allocations: 4.719 kB / 0.5209 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.227e-05/0.3588, allocations: 7.141 kB / 0.5209 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.3589, allocations: 2.188 kB / 0.521 GB, free: 1.086 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 4.707e-05/0.3589, allocations: 111.9 kB / 0.5211 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.3589, allocations: 5.406 kB / 0.5211 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.3592, allocations: 93.14 kB / 0.5212 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3592, allocations: 1.078 kB / 0.5212 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3592, allocations: 1.5 kB / 0.5212 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3592, allocations: 0 / 0.5212 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006156/0.3598, allocations: 359 kB / 0.5215 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.3598, allocations: 1.469 kB / 0.5215 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.307e-05/0.3599, allocations: 17.48 kB / 0.5215 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.36, allocations: 1.281 kB / 0.5215 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.36, allocations: 5.812 kB / 0.5215 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.36, allocations: 2.188 kB / 0.5215 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.36, allocations: 0 / 0.5215 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.3602, allocations: 181.9 kB / 0.5217 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.686e-05/0.3602, allocations: 83.73 kB / 0.5218 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.3602, allocations: 9.812 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.3604, allocations: 5.25 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.495e-05/0.3604, allocations: 3.609 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.3604, allocations: 2.875 kB / 0.5218 GB, free: 320 kB / 382.1 MB Notification: Performance of sorting global known variables: time 1.626e-05/0.3604, allocations: 80.34 kB / 0.5219 GB, free: 240 kB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3604, allocations: 0 / 0.5219 GB, free: 240 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002313/0.3606, allocations: 8.469 kB / 0.5219 GB, free: 240 kB / 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.0005149/0.3612, allocations: 0.7243 MB / 0.5226 GB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002311/0.3614, allocations: 48.02 kB / 0.5226 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3614, allocations: 0 / 0.5226 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.852e-05/0.3615, allocations: 29.06 kB / 0.5227 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002095/0.3617, allocations: 1.719 kB / 0.5227 GB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005416/0.3623, allocations: 161.3 kB / 0.5228 GB, free: 15.36 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.3626, allocations: 0.6837 MB / 0.5235 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.437e-05/0.3626, allocations: 4.062 kB / 0.5235 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.626e-05/0.3627, allocations: 15.48 kB / 0.5235 GB, free: 14.65 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3627, allocations: 1.094 kB / 0.5235 GB, free: 14.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.3801, allocations: 1.484 MB / 0.525 GB, free: 14.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.735, allocations: 6.094 kB / 0.525 GB, free: 14.27 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep_fmu --startTime=0 --stopTime=1.3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegStep.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegStep/TestRegStep.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches