Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_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.001173/0.001173, allocations: 103.1 kB / 16.27 MB, free: 6.41 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.001213/0.001213, allocations: 188.6 kB / 17.19 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2338/0.2338, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001584, allocations: 73.08 kB / 382.8 MB, free: 56.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1054, allocations: 57.79 MB / 440.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.467/0.5724, allocations: 186.3 MB / 0.6122 GB, free: 5.559 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002279/0.5747, allocations: 0.8967 MB / 0.6131 GB, free: 4.93 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003774/0.5751, allocations: 11.31 kB / 0.6131 GB, free: 4.926 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007984/0.576, allocations: 212.6 kB / 0.6133 GB, free: 4.746 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006584/0.5766, allocations: 274.3 kB / 0.6135 GB, free: 4.523 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006425/0.5831, allocations: 2.151 MB / 0.6156 GB, free: 3.035 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.5846, allocations: 0.9801 MB / 0.6166 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005964/0.5852, allocations: 328.5 kB / 0.6169 GB, free: 2.273 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004287/0.5895, allocations: 1.693 MB / 0.6186 GB, free: 1.266 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006158/0.5901, allocations: 323.1 kB / 0.6189 GB, free: 1.074 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001291/0.5903, allocations: 47.84 kB / 0.6189 GB, free: 1.074 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005508/0.5958, allocations: 2.853 MB / 0.6217 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000308/0.5961, allocations: 191.5 kB / 0.6219 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000487/0.5966, allocations: 270.8 kB / 0.6222 GB, free: 14.84 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004007/0.6006, allocations: 2.101 MB / 0.6242 GB, free: 12.74 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.6006, allocations: 4 kB / 0.6242 GB, free: 12.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6006, allocations: 0 / 0.6242 GB, free: 12.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.954e-05/0.6007, allocations: 4 kB / 0.6242 GB, free: 12.73 MB / 446.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.0022/0.6029, allocations: 1.064 MB / 0.6253 GB, free: 11.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.6029, allocations: 11.89 kB / 0.6253 GB, free: 11.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.406e-05/0.603, allocations: 74.53 kB / 0.6253 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003023/0.6033, allocations: 63.42 kB / 0.6254 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.6039, allocations: 369.9 kB / 0.6257 GB, free: 11.05 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.6039, allocations: 25 kB / 0.6258 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-05/0.604, allocations: 39.94 kB / 0.6258 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009079/0.6049, allocations: 0.5237 MB / 0.6263 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.605, allocations: 3.938 kB / 0.6263 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.605, allocations: 16 kB / 0.6263 GB, free: 10.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.605, allocations: 12 kB / 0.6264 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008998/0.6059, allocations: 495.5 kB / 0.6268 GB, free: 9.918 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.6087, allocations: 1.978 MB / 0.6288 GB, free: 7.797 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.6095, allocations: 462.2 kB / 0.6292 GB, free: 7.301 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.6098, allocations: 182.5 kB / 0.6294 GB, free: 7.113 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008134/0.6106, allocations: 0.9494 MB / 0.6303 GB, free: 5.961 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.6107, allocations: 38.56 kB / 0.6303 GB, free: 5.914 MB / 446.1 MB Notification: Performance of pre-optimization done (n=30): time 2.144e-06/0.6107, allocations: 0 / 0.6303 GB, free: 5.914 MB / 446.1 MB Notification: Performance of matching and sorting (n=30): time 0.001164/0.6118, allocations: 0.5031 MB / 0.6308 GB, free: 5.406 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.959e-05/0.6119, allocations: 106.8 kB / 0.6309 GB, free: 5.277 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.6123, allocations: 401.6 kB / 0.6313 GB, free: 4.879 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.6124, allocations: 33.7 kB / 0.6313 GB, free: 4.84 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.6125, allocations: 216.1 kB / 0.6315 GB, free: 4.625 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.513e-05/0.6126, allocations: 102.5 kB / 0.6316 GB, free: 4.523 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.6128, allocations: 81.97 kB / 0.6317 GB, free: 4.438 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.613, allocations: 346.8 kB / 0.6321 GB, free: 4.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003288/0.6133, allocations: 156.6 kB / 0.6322 GB, free: 3.938 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004406/0.6138, allocations: 258 kB / 0.6325 GB, free: 3.641 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008014/0.6146, allocations: 483.8 kB / 0.6329 GB, free: 3.113 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.6146, allocations: 7.938 kB / 0.6329 GB, free: 3.105 MB / 446.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001112/0.6157, allocations: 0.5395 MB / 0.6334 GB, free: 2.547 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.6158, allocations: 67.44 kB / 0.6335 GB, free: 2.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.6158, allocations: 4 kB / 0.6335 GB, free: 2.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.6158, allocations: 4 kB / 0.6335 GB, free: 2.461 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004061/0.6162, allocations: 83.88 kB / 0.6336 GB, free: 2.379 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.6163, allocations: 7.938 kB / 0.6336 GB, free: 2.371 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003479/0.6166, allocations: 55.42 kB / 0.6337 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/0.6167, allocations: 20 kB / 0.6337 GB, free: 2.297 MB / 446.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.0002414/0.6169, allocations: 193.6 kB / 0.6339 GB, free: 2.098 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001357/0.6171, allocations: 39.53 kB / 0.6339 GB, free: 2.059 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/0.6181, allocations: 500 kB / 0.6344 GB, free: 1.566 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.6182, allocations: 4 kB / 0.6344 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.6182, allocations: 0 / 0.6344 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.932e-06/0.6182, allocations: 0 / 0.6344 GB, free: 1.562 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003104/0.6213, allocations: 2.441 MB / 0.6368 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.6213, allocations: 8.031 kB / 0.6368 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.6216, allocations: 67.89 kB / 0.6368 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.371e-06/0.6216, allocations: 0 / 0.6368 GB, free: 14.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.6217, allocations: 15.94 kB / 0.6369 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.6217, allocations: 3.938 kB / 0.6369 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6217, allocations: 4 kB / 0.6369 GB, free: 14.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008188/0.6225, allocations: 0.6316 MB / 0.6375 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.6227, allocations: 124.6 kB / 0.6376 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.448e-05/0.6227, allocations: 15.92 kB / 0.6376 GB, free: 13.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.6232, allocations: 19.98 kB / 0.6376 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.082e-05/0.6232, allocations: 24.25 kB / 0.6377 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.6233, allocations: 19.98 kB / 0.6377 GB, free: 13.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0004093/0.6237, allocations: 363.1 kB / 0.638 GB, free: 13.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6237, allocations: 0 / 0.638 GB, free: 13.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001227/0.625, allocations: 383.6 kB / 0.6384 GB, free: 13.06 MB / 462.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.002895/0.6279, allocations: 1.655 MB / 0.64 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009102/0.6288, allocations: 494.9 kB / 0.6405 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.6288, allocations: 0 / 0.6405 GB, free: 10.86 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003314/0.6291, allocations: 163.8 kB / 0.6406 GB, free: 10.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.6307, allocations: 284.7 kB / 0.6409 GB, free: 10.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00627/0.637, allocations: 4.647 MB / 0.6454 GB, free: 5.559 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.6374, allocations: 0.8387 MB / 0.6463 GB, free: 4.695 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000488/0.6379, allocations: 110.4 kB / 0.6464 GB, free: 4.586 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002208/0.6381, allocations: 151.4 kB / 0.6465 GB, free: 4.438 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6381, allocations: 0 / 0.6465 GB, free: 4.438 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04653/0.6847, allocations: 20.58 MB / 0.6666 GB, free: 15.85 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.608, allocations: 15.73 kB / 0.6666 GB, free: 15.83 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestComponents/Sensors/TestTraceSubstances/TestTraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches