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.001425/0.001425, allocations: 106.3 kB / 17.33 MB, free: 5.996 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.0017/0.0017, allocations: 193.3 kB / 18.25 MB, free: 5.086 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.373/1.373, allocations: 222.9 MB / 241.9 MB, free: 15.36 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.2103/0.2103, allocations: 44.17 MB / 336.2 MB, free: 2.922 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 67.75 kB / 408 MB, free: 27.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.106, allocations: 60.83 MB / 468.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3693/0.4754, allocations: 179.2 MB / 0.6328 GB, free: 13.73 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.4773, allocations: 0.9125 MB / 0.6337 GB, free: 12.81 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003458/0.4776, allocations: 15.88 kB / 0.6337 GB, free: 12.8 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006558/0.4783, allocations: 179.1 kB / 0.6339 GB, free: 12.62 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000618/0.479, allocations: 270.5 kB / 0.6341 GB, free: 12.36 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004523/0.4835, allocations: 1.733 MB / 0.6358 GB, free: 10.63 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.4846, allocations: 0.9788 MB / 0.6368 GB, free: 9.645 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004869/0.4851, allocations: 326.4 kB / 0.6371 GB, free: 9.332 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003134/0.4883, allocations: 1.5 MB / 0.6386 GB, free: 7.828 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005176/0.4888, allocations: 342.7 kB / 0.6389 GB, free: 7.492 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.4889, allocations: 48 kB / 0.6389 GB, free: 7.445 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004199/0.4931, allocations: 2.777 MB / 0.6417 GB, free: 4.664 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002634/0.4934, allocations: 207.5 kB / 0.6419 GB, free: 4.461 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003418/0.4938, allocations: 266.9 kB / 0.6421 GB, free: 4.199 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003412/0.4972, allocations: 2.069 MB / 0.6441 GB, free: 2.125 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.4972, allocations: 0 / 0.6441 GB, free: 2.125 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4972, allocations: 0 / 0.6441 GB, free: 2.125 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.4972, allocations: 0 / 0.6441 GB, free: 2.125 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.001952/0.4992, allocations: 1.04 MB / 0.6451 GB, free: 1.023 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.4992, allocations: 12.03 kB / 0.6452 GB, free: 1.012 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.4993, allocations: 82.45 kB / 0.6452 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002651/0.4996, allocations: 55.44 kB / 0.6453 GB, free: 0.8672 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.5001, allocations: 358 kB / 0.6456 GB, free: 488 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.5001, allocations: 36.94 kB / 0.6457 GB, free: 452 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.5002, allocations: 40.73 kB / 0.6457 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008984/0.5011, allocations: 0.5201 MB / 0.6462 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.5011, allocations: 3.938 kB / 0.6462 GB, free: 15.85 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.568e-05/0.5012, allocations: 16 kB / 0.6462 GB, free: 15.83 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.5012, allocations: 12 kB / 0.6462 GB, free: 15.82 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008695/0.5021, allocations: 0.4917 MB / 0.6467 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002716/0.5048, allocations: 1.969 MB / 0.6486 GB, free: 13.22 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007295/0.5056, allocations: 460.7 kB / 0.6491 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003229/0.5059, allocations: 182.5 kB / 0.6493 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008328/0.5067, allocations: 0.9494 MB / 0.6502 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.5068, allocations: 38.56 kB / 0.6502 GB, free: 11.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.5068, allocations: 0 / 0.6502 GB, free: 11.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001115/0.5079, allocations: 0.4892 MB / 0.6507 GB, free: 10.84 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.308e-05/0.508, allocations: 110.8 kB / 0.6508 GB, free: 10.71 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.5084, allocations: 409.5 kB / 0.6512 GB, free: 10.3 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.5085, allocations: 33.7 kB / 0.6512 GB, free: 10.26 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.5086, allocations: 220.1 kB / 0.6514 GB, free: 10.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.872e-05/0.5087, allocations: 98.55 kB / 0.6515 GB, free: 9.945 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.5089, allocations: 74.06 kB / 0.6516 GB, free: 9.867 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.509, allocations: 350.7 kB / 0.6519 GB, free: 9.516 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003105/0.5093, allocations: 156.6 kB / 0.6521 GB, free: 9.363 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/0.5097, allocations: 254 kB / 0.6523 GB, free: 9.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007299/0.5105, allocations: 487.2 kB / 0.6528 GB, free: 8.539 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.5105, allocations: 4 kB / 0.6528 GB, free: 8.535 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000968/0.5115, allocations: 0.5503 MB / 0.6533 GB, free: 7.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.735e-05/0.5115, allocations: 63.41 kB / 0.6534 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.5115, allocations: 4 kB / 0.6534 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.5116, allocations: 4 kB / 0.6534 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/0.512, allocations: 84.25 kB / 0.6535 GB, free: 7.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.512, allocations: 15.88 kB / 0.6535 GB, free: 7.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003672/0.5124, allocations: 59.42 kB / 0.6536 GB, free: 7.73 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.796e-05/0.5125, allocations: 20 kB / 0.6536 GB, free: 7.711 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.0002116/0.5127, allocations: 186.2 kB / 0.6537 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.5128, allocations: 43.47 kB / 0.6538 GB, free: 7.477 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001029/0.5139, allocations: 493.1 kB / 0.6543 GB, free: 6.992 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.5139, allocations: 4 kB / 0.6543 GB, free: 6.988 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.209e-06/0.5139, allocations: 3.938 kB / 0.6543 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.5139, allocations: 3.984 kB / 0.6543 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.5169, allocations: 2.426 MB / 0.6566 GB, free: 4.207 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.5169, allocations: 4 kB / 0.6566 GB, free: 4.203 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.5173, allocations: 63.89 kB / 0.6567 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-06/0.5173, allocations: 12.41 kB / 0.6567 GB, free: 4.129 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.583e-05/0.5173, allocations: 8 kB / 0.6567 GB, free: 4.121 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.061e-06/0.5173, allocations: 4 kB / 0.6567 GB, free: 4.117 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5173, allocations: 7.938 kB / 0.6567 GB, free: 4.109 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008579/0.5182, allocations: 0.6394 MB / 0.6574 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.5183, allocations: 132.4 kB / 0.6575 GB, free: 3.285 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.5e-05/0.5184, allocations: 11.91 kB / 0.6575 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.5189, allocations: 28.05 kB / 0.6575 GB, free: 3.246 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.072e-05/0.5189, allocations: 23.97 kB / 0.6575 GB, free: 3.223 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.923e-05/0.519, allocations: 23.98 kB / 0.6576 GB, free: 3.199 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004037/0.5194, allocations: 359.1 kB / 0.6579 GB, free: 2.848 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5194, allocations: 3.938 kB / 0.6579 GB, free: 2.844 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001035/0.5204, allocations: 347.6 kB / 0.6582 GB, free: 2.504 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.002235/0.5227, allocations: 1.564 MB / 0.6598 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008217/0.5235, allocations: 474.4 kB / 0.6602 GB, free: 428 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.5235, allocations: 4 kB / 0.6602 GB, free: 424 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.5239, allocations: 164.8 kB / 0.6604 GB, free: 260 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/0.5253, allocations: 288.4 kB / 0.6607 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006601/0.532, allocations: 4.783 MB / 0.6653 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.5324, allocations: 0.8309 MB / 0.6661 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005022/0.5329, allocations: 119.5 kB / 0.6663 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002411/0.5332, allocations: 143.4 kB / 0.6664 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.5332, allocations: 0 / 0.6664 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/0.5715, allocations: 19.23 MB / 0.6852 GB, free: 6.938 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002664/0.5718, allocations: 266.3 kB / 0.6854 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/2.963, allocations: 0 / 0.6854 GB, free: 6.582 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