Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",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.001076/0.001076, allocations: 107.6 kB / 17.21 MB, free: 6.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.0009861/0.0009861, allocations: 194 kB / 18.12 MB, free: 5.383 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.34/1.34, allocations: 222.9 MB / 241.8 MB, free: 15.5 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.2001/0.2001, allocations: 44.18 MB / 336.1 MB, free: 2.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 58.19 kB / 407.8 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.09333, allocations: 60.83 MB / 468.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4082/0.5016, allocations: 180 MB / 0.6334 GB, free: 13.12 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002809/0.5044, allocations: 0.9281 MB / 0.6343 GB, free: 12.19 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005688/0.505, allocations: 7.938 kB / 0.6343 GB, free: 12.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009918/0.5061, allocations: 183 kB / 0.6345 GB, free: 12 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001105/0.5072, allocations: 274.6 kB / 0.6347 GB, free: 11.73 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006588/0.5138, allocations: 1.643 MB / 0.6363 GB, free: 10.09 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001991/0.5159, allocations: 1.295 MB / 0.6376 GB, free: 8.793 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005495/0.5164, allocations: 277.2 kB / 0.6379 GB, free: 8.52 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004444/0.5209, allocations: 1.418 MB / 0.6392 GB, free: 7.098 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006998/0.5216, allocations: 330.7 kB / 0.6396 GB, free: 6.773 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.502e-05/0.5217, allocations: 20 kB / 0.6396 GB, free: 6.754 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006353/0.5281, allocations: 2.827 MB / 0.6423 GB, free: 3.922 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003696/0.5285, allocations: 175.4 kB / 0.6425 GB, free: 3.75 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004541/0.5289, allocations: 242.9 kB / 0.6427 GB, free: 3.512 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005417/0.5344, allocations: 2.05 MB / 0.6447 GB, free: 1.457 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.5344, allocations: 0 / 0.6447 GB, free: 1.457 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5344, allocations: 4 kB / 0.6447 GB, free: 1.453 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.5344, allocations: 0 / 0.6447 GB, free: 1.453 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002423/0.5369, allocations: 1.044 MB / 0.6458 GB, free: 356 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.5369, allocations: 11.97 kB / 0.6458 GB, free: 344 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.5371, allocations: 78.53 kB / 0.6459 GB, free: 256 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003463/0.5374, allocations: 55.44 kB / 0.6459 GB, free: 200 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006512/0.5381, allocations: 369.9 kB / 0.6463 GB, free: 15.79 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.441e-05/0.5381, allocations: 32.94 kB / 0.6463 GB, free: 15.76 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.083e-05/0.5382, allocations: 36 kB / 0.6463 GB, free: 15.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.5394, allocations: 0.5123 MB / 0.6468 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.33e-05/0.5394, allocations: 4 kB / 0.6468 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.608e-05/0.5395, allocations: 20 kB / 0.6468 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.5395, allocations: 8 kB / 0.6469 GB, free: 15.15 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.5406, allocations: 0.4917 MB / 0.6473 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.5439, allocations: 1.974 MB / 0.6493 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009234/0.5448, allocations: 456.7 kB / 0.6497 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004042/0.5453, allocations: 190.4 kB / 0.6499 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001019/0.5463, allocations: 0.9493 MB / 0.6508 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.5464, allocations: 38.72 kB / 0.6508 GB, free: 10.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 3.586e-06/0.5464, allocations: 0 / 0.6508 GB, free: 10.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001452/0.5478, allocations: 0.4886 MB / 0.6513 GB, free: 10.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.072e-05/0.5479, allocations: 118.7 kB / 0.6514 GB, free: 10.02 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005241/0.5484, allocations: 397.6 kB / 0.6518 GB, free: 9.629 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.5485, allocations: 33.7 kB / 0.6518 GB, free: 9.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.5486, allocations: 220.1 kB / 0.6521 GB, free: 9.371 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.732e-05/0.5487, allocations: 98.5 kB / 0.6521 GB, free: 9.273 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001354/0.5489, allocations: 86.05 kB / 0.6522 GB, free: 9.184 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.549, allocations: 350.7 kB / 0.6526 GB, free: 8.832 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003083/0.5493, allocations: 156.6 kB / 0.6527 GB, free: 8.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003526/0.5497, allocations: 254 kB / 0.653 GB, free: 8.387 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006858/0.5504, allocations: 490.7 kB / 0.6534 GB, free: 7.852 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.5504, allocations: 0 / 0.6534 GB, free: 7.852 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009719/0.5514, allocations: 0.5509 MB / 0.654 GB, free: 7.281 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.462e-05/0.5515, allocations: 71.27 kB / 0.654 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.5515, allocations: 4 kB / 0.654 GB, free: 7.195 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.5515, allocations: 8.375 kB / 0.654 GB, free: 7.188 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003904/0.5519, allocations: 83.89 kB / 0.6541 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.5519, allocations: 8 kB / 0.6541 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.5523, allocations: 59.36 kB / 0.6542 GB, free: 7.039 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.628e-05/0.5524, allocations: 23.98 kB / 0.6542 GB, free: 7.016 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0002197/0.5526, allocations: 186.2 kB / 0.6544 GB, free: 6.824 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.5527, allocations: 43.53 kB / 0.6544 GB, free: 6.781 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.5538, allocations: 489.7 kB / 0.6549 GB, free: 6.301 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.5538, allocations: 4 kB / 0.6549 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.5538, allocations: 0 / 0.6549 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.5538, allocations: 0 / 0.6549 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/0.5567, allocations: 2.443 MB / 0.6573 GB, free: 3.508 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.5567, allocations: 0 / 0.6573 GB, free: 3.508 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002949/0.557, allocations: 64.09 kB / 0.6573 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.557, allocations: 7.938 kB / 0.6574 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.439e-05/0.5571, allocations: 11.98 kB / 0.6574 GB, free: 3.426 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.5571, allocations: 4 kB / 0.6574 GB, free: 3.422 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5571, allocations: 3.938 kB / 0.6574 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007821/0.5579, allocations: 0.6355 MB / 0.658 GB, free: 2.746 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.558, allocations: 120.5 kB / 0.6581 GB, free: 2.609 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/0.5581, allocations: 15.91 kB / 0.6581 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004622/0.5585, allocations: 36.19 kB / 0.6582 GB, free: 2.559 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.494e-05/0.5586, allocations: 27.89 kB / 0.6582 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.5587, allocations: 19.98 kB / 0.6582 GB, free: 2.512 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003795/0.5591, allocations: 363.1 kB / 0.6586 GB, free: 2.156 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5591, allocations: 0 / 0.6586 GB, free: 2.156 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001041/0.5601, allocations: 335.7 kB / 0.6589 GB, free: 1.828 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (32): * Single equations (assignments): 32 * 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.00216/0.5623, allocations: 1.585 MB / 0.6604 GB, free: 216 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008062/0.5631, allocations: 466.4 kB / 0.6609 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.5631, allocations: 4 kB / 0.6609 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003073/0.5634, allocations: 156.8 kB / 0.661 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.5649, allocations: 268.7 kB / 0.6613 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006414/0.5713, allocations: 4.773 MB / 0.6659 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.5717, allocations: 0.8389 MB / 0.6668 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005052/0.5723, allocations: 123.3 kB / 0.6669 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.5725, allocations: 139.4 kB / 0.667 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.5725, allocations: 0 / 0.667 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.6075, allocations: 18.85 MB / 0.6854 GB, free: 6.621 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000272/0.6078, allocations: 266 kB / 0.6857 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.432/3.04, allocations: 4 kB / 0.6857 GB, free: 6.262 MB / 0.5137 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches