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.001394/0.001394, allocations: 104.5 kB / 17.63 MB, free: 5.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.001546/0.001546, allocations: 192 kB / 18.56 MB, free: 4.434 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.429/1.429, allocations: 222.9 MB / 242.2 MB, free: 15.17 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.2196/0.2196, allocations: 44.18 MB / 336.6 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 69.3 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1229, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4195/0.5424, allocations: 181.3 MB / 0.6354 GB, free: 11.19 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002597/0.545, allocations: 0.8946 MB / 0.6363 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000556/0.5456, allocations: 11.94 kB / 0.6363 GB, free: 10.29 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009225/0.5466, allocations: 210.7 kB / 0.6365 GB, free: 10.08 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009556/0.5476, allocations: 274.3 kB / 0.6368 GB, free: 9.809 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006608/0.5542, allocations: 1.904 MB / 0.6386 GB, free: 7.906 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001509/0.5558, allocations: 0.971 MB / 0.6396 GB, free: 6.93 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006537/0.5564, allocations: 333.6 kB / 0.6399 GB, free: 6.605 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004298/0.5607, allocations: 1.534 MB / 0.6414 GB, free: 5.066 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007893/0.5615, allocations: 310.9 kB / 0.6417 GB, free: 4.762 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002351/0.5618, allocations: 48 kB / 0.6417 GB, free: 4.715 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007627/0.5694, allocations: 2.687 MB / 0.6444 GB, free: 2.023 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005468/0.57, allocations: 195.5 kB / 0.6445 GB, free: 1.832 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008737/0.5709, allocations: 274.8 kB / 0.6448 GB, free: 1.562 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007764/0.5787, allocations: 2.011 MB / 0.6468 GB, free: 15.55 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.5788, allocations: 4 kB / 0.6468 GB, free: 15.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5788, allocations: 0 / 0.6468 GB, free: 15.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.812e-05/0.5788, allocations: 0 / 0.6468 GB, free: 15.54 MB / 494.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.00305/0.5819, allocations: 1.04 MB / 0.6478 GB, free: 14.44 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.945e-05/0.582, allocations: 12.03 kB / 0.6478 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001981/0.5822, allocations: 70.53 kB / 0.6479 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004945/0.5827, allocations: 63.42 kB / 0.6479 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007792/0.5835, allocations: 366 kB / 0.6483 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.75e-05/0.5835, allocations: 32.94 kB / 0.6483 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.267e-05/0.5836, allocations: 36 kB / 0.6483 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.5847, allocations: 0.524 MB / 0.6489 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.5847, allocations: 0 / 0.6489 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.57e-05/0.5848, allocations: 19.94 kB / 0.6489 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.5848, allocations: 12 kB / 0.6489 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009451/0.5857, allocations: 499.5 kB / 0.6494 GB, free: 12.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/0.5887, allocations: 1.978 MB / 0.6513 GB, free: 10.63 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007929/0.5895, allocations: 460.6 kB / 0.6517 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.5898, allocations: 182.4 kB / 0.6519 GB, free: 9.949 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009654/0.5908, allocations: 0.9494 MB / 0.6528 GB, free: 8.797 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.5909, allocations: 38.56 kB / 0.6529 GB, free: 8.75 MB / 494.1 MB Notification: Performance of pre-optimization done (n=30): time 2.645e-06/0.5909, allocations: 4 kB / 0.6529 GB, free: 8.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=30): time 0.001375/0.5923, allocations: 0.4892 MB / 0.6534 GB, free: 8.25 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.5923, allocations: 110.8 kB / 0.6535 GB, free: 8.117 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005973/0.593, allocations: 401.6 kB / 0.6538 GB, free: 7.715 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.065e-05/0.593, allocations: 33.7 kB / 0.6539 GB, free: 7.676 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002062/0.5933, allocations: 220 kB / 0.6541 GB, free: 7.457 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.5935, allocations: 106.5 kB / 0.6542 GB, free: 7.352 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.5937, allocations: 74.06 kB / 0.6543 GB, free: 7.273 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.5938, allocations: 350.7 kB / 0.6546 GB, free: 6.922 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.5942, allocations: 152.6 kB / 0.6547 GB, free: 6.773 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003863/0.5946, allocations: 254 kB / 0.655 GB, free: 6.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007471/0.5953, allocations: 487.5 kB / 0.6554 GB, free: 5.949 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5953, allocations: 0 / 0.6554 GB, free: 5.949 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.00103/0.5964, allocations: 0.5471 MB / 0.656 GB, free: 5.383 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.295e-05/0.5964, allocations: 63.41 kB / 0.656 GB, free: 5.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.5965, allocations: 4 kB / 0.656 GB, free: 5.305 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.337e-05/0.5965, allocations: 4 kB / 0.656 GB, free: 5.301 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004321/0.5969, allocations: 83.88 kB / 0.6561 GB, free: 5.219 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.597, allocations: 4 kB / 0.6561 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003761/0.5973, allocations: 55.42 kB / 0.6562 GB, free: 5.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.5974, allocations: 20 kB / 0.6562 GB, free: 5.141 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.0002429/0.5977, allocations: 197.8 kB / 0.6564 GB, free: 4.938 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.5978, allocations: 39.53 kB / 0.6564 GB, free: 4.898 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.5989, allocations: 491.9 kB / 0.6569 GB, free: 4.414 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.5989, allocations: 8.031 kB / 0.6569 GB, free: 4.406 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.5989, allocations: 0 / 0.6569 GB, free: 4.406 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.5989, allocations: 0 / 0.6569 GB, free: 4.406 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003761/0.6027, allocations: 2.439 MB / 0.6593 GB, free: 1.621 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6027, allocations: 4 kB / 0.6593 GB, free: 1.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003031/0.603, allocations: 59.91 kB / 0.6593 GB, free: 1.559 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.243e-06/0.6031, allocations: 11.88 kB / 0.6594 GB, free: 1.547 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.6031, allocations: 15.98 kB / 0.6594 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.6031, allocations: 0 / 0.6594 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.6031, allocations: 7.938 kB / 0.6594 GB, free: 1.523 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008206/0.6039, allocations: 0.6279 MB / 0.66 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.6041, allocations: 132.4 kB / 0.6601 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.143e-05/0.6042, allocations: 11.91 kB / 0.6601 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.6046, allocations: 23.97 kB / 0.6602 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.511e-05/0.6047, allocations: 27.91 kB / 0.6602 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.623e-05/0.6048, allocations: 19.98 kB / 0.6602 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003772/0.6052, allocations: 367.1 kB / 0.6606 GB, free: 280 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6052, allocations: 0 / 0.6606 GB, free: 280 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.00112/0.6063, allocations: 335.8 kB / 0.6609 GB, free: 15.94 MB / 0.4981 GB 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.002341/0.6086, allocations: 1.577 MB / 0.6624 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008841/0.6095, allocations: 486.5 kB / 0.6629 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6095, allocations: 0 / 0.6629 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003329/0.6099, allocations: 168.9 kB / 0.663 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001548/0.6114, allocations: 287.4 kB / 0.6633 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006469/0.6179, allocations: 4.643 MB / 0.6678 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.6184, allocations: 0.8386 MB / 0.6687 GB, free: 7.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004893/0.6189, allocations: 115.3 kB / 0.6688 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.6191, allocations: 151.3 kB / 0.6689 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.6191, allocations: 0 / 0.6689 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04483/0.664, allocations: 19.4 MB / 0.6879 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.595, allocations: 22.62 kB / 0.6879 GB, free: 4.254 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/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