Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.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.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives",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.001196/0.001196, allocations: 110.4 kB / 17.78 MB, free: 5.293 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.001507/0.001506, allocations: 187 kB / 18.71 MB, free: 4.363 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.416/1.416, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.215/0.215, allocations: 44.18 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 75.88 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3559, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives): time 0.001732/0.3577, allocations: 0.5287 MB / 0.5189 GB, free: 2.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007605/0.3584, allocations: 411.7 kB / 0.5193 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.018e-05/0.3585, allocations: 3.938 kB / 0.5193 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.674e-05/0.3585, allocations: 9.156 kB / 0.5193 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.202e-05/0.3586, allocations: 0 / 0.5193 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.3591, allocations: 138.7 kB / 0.5195 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.486e-05/0.3591, allocations: 25.08 kB / 0.5195 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.462e-05/0.3592, allocations: 5.25 kB / 0.5195 GB, free: 2.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.3592, allocations: 11.25 kB / 0.5195 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.821e-05/0.3593, allocations: 25.16 kB / 0.5195 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.085e-05/0.3593, allocations: 1.531 kB / 0.5195 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.3596, allocations: 164.9 kB / 0.5197 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.3596, allocations: 7.078 kB / 0.5197 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.981e-05/0.3596, allocations: 17.77 kB / 0.5197 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.3599, allocations: 121.4 kB / 0.5198 GB, free: 2.492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3599, allocations: 0.6094 kB / 0.5198 GB, free: 2.492 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3599, allocations: 1.094 kB / 0.5198 GB, free: 2.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.3599, allocations: 0 / 0.5198 GB, free: 2.492 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003836/0.3603, allocations: 366.6 kB / 0.5202 GB, free: 2.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.3603, allocations: 9.469 kB / 0.5202 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.047e-05/0.3604, allocations: 37.2 kB / 0.5202 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.898e-05/0.3604, allocations: 3.375 kB / 0.5202 GB, free: 2.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.549e-05/0.3605, allocations: 172.2 kB / 0.5204 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.3605, allocations: 5.812 kB / 0.5204 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.3605, allocations: 2.938 kB / 0.5204 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001275/0.3607, allocations: 57.3 kB / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3607, allocations: 1.5 kB / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.3607, allocations: 0 / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3607, allocations: 1.469 kB / 0.5205 GB, free: 1.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.737e-05/0.3608, allocations: 25.64 kB / 0.5205 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.3609, allocations: 180.9 kB / 0.5207 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.3612, allocations: 54.95 kB / 0.5207 GB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.818e-05/0.3612, allocations: 23.34 kB / 0.5207 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002583/0.3615, allocations: 105.1 kB / 0.5208 GB, free: 1.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.3615, allocations: 48.48 kB / 0.5209 GB, free: 1.414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.3615, allocations: 0 / 0.5209 GB, free: 1.414 MB / 382.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.1385/0.5, allocations: 6.368 MB / 0.5271 GB, free: 14.64 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.5001, allocations: 63.11 kB / 0.5272 GB, free: 14.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.655e-05/0.5001, allocations: 99.69 kB / 0.5273 GB, free: 14.47 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.807e-05/0.5002, allocations: 29.7 kB / 0.5273 GB, free: 14.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.5002, allocations: 81.2 kB / 0.5274 GB, free: 14.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.122e-05/0.5003, allocations: 70.66 kB / 0.5274 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001655/0.5005, allocations: 84.78 kB / 0.5275 GB, free: 14.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.5006, allocations: 325.3 kB / 0.5278 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005311/0.5012, allocations: 224.9 kB / 0.528 GB, free: 13.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005113/0.5017, allocations: 233.7 kB / 0.5283 GB, free: 13.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002047/0.5037, allocations: 0.5526 MB / 0.5288 GB, free: 13.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.5038, allocations: 0 / 0.5288 GB, free: 13.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001785/0.5056, allocations: 0.6193 MB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.5056, allocations: 7 kB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.5056, allocations: 1.094 kB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.5056, allocations: 1.719 kB / 0.5294 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006461/0.5063, allocations: 107 kB / 0.5295 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.5063, allocations: 1.75 kB / 0.5295 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004272/0.5067, allocations: 23.72 kB / 0.5295 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.993e-05/0.5068, allocations: 36.25 kB / 0.5296 GB, free: 12.96 MB / 398.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 (19): * Single equations (assignments): 19 * 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 0.0001463/0.5069, allocations: 121 kB / 0.5297 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.917e-05/0.507, allocations: 16.42 kB / 0.5297 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/0.509, allocations: 0.7324 MB / 0.5304 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.509, allocations: 2.188 kB / 0.5304 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.509, allocations: 0 / 0.5304 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5091, allocations: 0 / 0.5304 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003972/0.513, allocations: 1.162 MB / 0.5315 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.5131, allocations: 5.031 kB / 0.5316 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005468/0.5136, allocations: 102.3 kB / 0.5317 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.114e-06/0.5136, allocations: 2.125 kB / 0.5317 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.796e-05/0.5137, allocations: 27.27 kB / 0.5317 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.5137, allocations: 2.688 kB / 0.5317 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.5137, allocations: 9.219 kB / 0.5317 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.5153, allocations: 0.5753 MB / 0.5323 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.198e-05/0.5154, allocations: 94.16 kB / 0.5323 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.522e-05/0.5155, allocations: 6.344 kB / 0.5323 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004107/0.5159, allocations: 28.91 kB / 0.5324 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/0.5159, allocations: 15.42 kB / 0.5324 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-05/0.516, allocations: 35.75 kB / 0.5324 GB, free: 10.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.117e-05/0.516, allocations: 87.48 kB / 0.5325 GB, free: 10.86 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.516, allocations: 0 / 0.5325 GB, free: 10.86 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001978/0.518, allocations: 0.647 MB / 0.5331 GB, free: 10.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (19): * Single equations (assignments): 19 * 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.00533/0.5234, allocations: 1.303 MB / 0.5344 GB, free: 9.809 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.5246, allocations: 452.8 kB / 0.5348 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5246, allocations: 1.344 kB / 0.5348 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005287/0.5252, allocations: 204.2 kB / 0.535 GB, free: 9.484 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003356/0.5255, allocations: 12.78 kB / 0.5351 GB, free: 9.477 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003419/0.5289, allocations: 0.6206 MB / 0.5357 GB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/0.5292, allocations: 0.6935 MB / 0.5363 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000423/0.5297, allocations: 128.4 kB / 0.5365 GB, free: 8.266 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.53, allocations: 99.38 kB / 0.5366 GB, free: 8.207 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.53, allocations: 1 kB / 0.5366 GB, free: 8.207 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08582/0.6158, allocations: 58.76 MB / 0.5939 GB, free: 14.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/8.409, allocations: 10.81 kB / 0.5939 GB, free: 14.29 MB / 462.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestUtilities_TestRegRoot2Derivatives.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegRoot2Derivatives/TestRegRoot2Derivatives.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegRoot2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches