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.0007889/0.0007887, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.0008773/0.0008773, allocations: 172.2 kB / 18.25 MB, free: 5.504 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.251/1.251, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1807/0.1807, allocations: 44.24 MB / 337.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002863, allocations: 8.594 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1033, allocations: 61.92 MB / 472.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3734/0.4767, allocations: 177.5 MB / 0.6347 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.4786, allocations: 0.9242 MB / 0.6356 GB, free: 36 kB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003601/0.479, allocations: 7.938 kB / 0.6356 GB, free: 28 kB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000691/0.4797, allocations: 175 kB / 0.6357 GB, free: 15.86 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007057/0.4804, allocations: 278.5 kB / 0.636 GB, free: 15.58 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004401/0.4848, allocations: 1.643 MB / 0.6376 GB, free: 13.94 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001449/0.4863, allocations: 1.299 MB / 0.6389 GB, free: 12.64 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006165/0.4869, allocations: 281.2 kB / 0.6391 GB, free: 12.36 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003459/0.4904, allocations: 1.406 MB / 0.6405 GB, free: 10.95 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005244/0.4909, allocations: 322.7 kB / 0.6408 GB, free: 10.63 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.812e-05/0.491, allocations: 20 kB / 0.6408 GB, free: 10.61 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004057/0.4951, allocations: 2.827 MB / 0.6436 GB, free: 7.781 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002137/0.4953, allocations: 171.5 kB / 0.6438 GB, free: 7.613 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.4956, allocations: 268.6 kB / 0.644 GB, free: 7.344 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002987/0.4986, allocations: 2.034 MB / 0.646 GB, free: 5.305 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.4987, allocations: 0 / 0.646 GB, free: 5.305 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4987, allocations: 0 / 0.646 GB, free: 5.305 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.4987, allocations: 4 kB / 0.646 GB, free: 5.301 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.001742/0.5004, allocations: 0.9489 MB / 0.6469 GB, free: 4.293 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.5005, allocations: 15.97 kB / 0.647 GB, free: 4.277 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.5006, allocations: 78.53 kB / 0.647 GB, free: 4.191 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002392/0.5008, allocations: 51.44 kB / 0.6471 GB, free: 4.141 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004677/0.5013, allocations: 369.9 kB / 0.6474 GB, free: 3.738 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.69e-05/0.5014, allocations: 32.94 kB / 0.6475 GB, free: 3.707 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.743e-05/0.5014, allocations: 36 kB / 0.6475 GB, free: 3.672 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008593/0.5023, allocations: 0.5281 MB / 0.648 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.5023, allocations: 0 / 0.648 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.5024, allocations: 20 kB / 0.648 GB, free: 3.094 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.5024, allocations: 8 kB / 0.648 GB, free: 3.086 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008556/0.5032, allocations: 0.5034 MB / 0.6485 GB, free: 2.582 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.5057, allocations: 1.978 MB / 0.6505 GB, free: 472 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000687/0.5064, allocations: 464.8 kB / 0.6509 GB, free: 15.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.5068, allocations: 186.4 kB / 0.6511 GB, free: 15.77 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007489/0.5075, allocations: 0.9532 MB / 0.652 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.5076, allocations: 42.55 kB / 0.6521 GB, free: 14.56 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 1.723e-06/0.5076, allocations: 0 / 0.6521 GB, free: 14.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001078/0.5086, allocations: 0.5047 MB / 0.6525 GB, free: 14.05 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.5087, allocations: 110.8 kB / 0.6527 GB, free: 13.92 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000406/0.5091, allocations: 401.7 kB / 0.653 GB, free: 13.52 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.005e-05/0.5092, allocations: 33.7 kB / 0.6531 GB, free: 13.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.5093, allocations: 216.1 kB / 0.6533 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.798e-05/0.5094, allocations: 102.5 kB / 0.6534 GB, free: 13.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.127e-05/0.5095, allocations: 41.69 kB / 0.6534 GB, free: 13.12 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.5096, allocations: 350.7 kB / 0.6537 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.5099, allocations: 156.7 kB / 0.6539 GB, free: 12.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.5103, allocations: 262 kB / 0.6541 GB, free: 12.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006997/0.511, allocations: 0.4951 MB / 0.6546 GB, free: 11.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.511, allocations: 0 / 0.6546 GB, free: 11.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009891/0.512, allocations: 0.5664 MB / 0.6552 GB, free: 11.18 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.281e-05/0.5121, allocations: 73.89 kB / 0.6553 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.5121, allocations: 0 / 0.6553 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.5121, allocations: 8 kB / 0.6553 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000365/0.5125, allocations: 79.89 kB / 0.6553 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.5125, allocations: 4 kB / 0.6553 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.5129, allocations: 71.78 kB / 0.6554 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-05/0.5129, allocations: 20 kB / 0.6554 GB, free: 10.92 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.0002107/0.5132, allocations: 190.1 kB / 0.6556 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.5133, allocations: 39.53 kB / 0.6556 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009831/0.5143, allocations: 499.2 kB / 0.6561 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.5143, allocations: 4.234 kB / 0.6561 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.5143, allocations: 0 / 0.6561 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.5143, allocations: 3.984 kB / 0.6561 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.517, allocations: 2.449 MB / 0.6585 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.5171, allocations: 0 / 0.6585 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002737/0.5173, allocations: 67.91 kB / 0.6586 GB, free: 7.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.977e-06/0.5174, allocations: 11.92 kB / 0.6586 GB, free: 7.309 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.5174, allocations: 8 kB / 0.6586 GB, free: 7.301 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.5174, allocations: 4 kB / 0.6586 GB, free: 7.297 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.5174, allocations: 4.125 kB / 0.6586 GB, free: 7.293 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007526/0.5182, allocations: 0.6472 MB / 0.6592 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.5183, allocations: 148.4 kB / 0.6594 GB, free: 6.445 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.424e-05/0.5184, allocations: 8 kB / 0.6594 GB, free: 6.438 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004327/0.5188, allocations: 23.98 kB / 0.6594 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.5189, allocations: 35.89 kB / 0.6595 GB, free: 6.379 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.432e-05/0.5189, allocations: 27.98 kB / 0.6595 GB, free: 6.352 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003792/0.5193, allocations: 359.1 kB / 0.6598 GB, free: 6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5193, allocations: 0 / 0.6598 GB, free: 6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001012/0.5204, allocations: 339.6 kB / 0.6601 GB, free: 5.668 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.002074/0.5224, allocations: 1.585 MB / 0.6617 GB, free: 4.051 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007691/0.5232, allocations: 469.5 kB / 0.6621 GB, free: 3.57 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.5232, allocations: 4.062 kB / 0.6621 GB, free: 3.566 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003129/0.5235, allocations: 167.7 kB / 0.6623 GB, free: 3.402 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001557/0.5251, allocations: 279.4 kB / 0.6626 GB, free: 3.137 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006142/0.5313, allocations: 4.843 MB / 0.6673 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.5317, allocations: 0.835 MB / 0.6681 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004914/0.5322, allocations: 114.9 kB / 0.6682 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.5324, allocations: 147.4 kB / 0.6684 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/0.5324, allocations: 0 / 0.6684 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03456/0.567, allocations: 18.67 MB / 0.6866 GB, free: 10.57 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/0.5673, allocations: 261.9 kB / 0.6869 GB, free: 10.21 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/2.873, allocations: 0 / 0.6869 GB, free: 10.21 MB / 0.5138 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