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.0009608/0.0009607, allocations: 96.94 kB / 17 MB, free: 5.953 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.001502/0.001502, allocations: 187.8 kB / 17.89 MB, free: 5.57 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.476/1.476, allocations: 223.2 MB / 241.9 MB, free: 216 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.2026/0.2026, allocations: 44.23 MB / 337.2 MB, free: 2.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003096, allocations: 8 kB / 409.7 MB, free: 27.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1142, allocations: 61.91 MB / 471.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4337/0.5479, allocations: 165.1 MB / 0.6218 GB, free: 13.92 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00172/0.5497, allocations: 0.8816 MB / 0.6226 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.5499, allocations: 7.938 kB / 0.6226 GB, free: 13.03 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005752/0.5505, allocations: 147 kB / 0.6228 GB, free: 12.89 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0005971/0.5511, allocations: 278.4 kB / 0.6231 GB, free: 12.61 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004776/0.5559, allocations: 1.402 MB / 0.6244 GB, free: 11.21 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00142/0.5574, allocations: 1.1 MB / 0.6255 GB, free: 10.11 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004216/0.5578, allocations: 257 kB / 0.6257 GB, free: 9.859 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003332/0.5611, allocations: 1.324 MB / 0.627 GB, free: 8.531 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005172/0.5617, allocations: 306.9 kB / 0.6273 GB, free: 8.23 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.943e-05/0.5618, allocations: 24 kB / 0.6274 GB, free: 8.207 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004274/0.566, allocations: 2.253 MB / 0.6296 GB, free: 5.953 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002571/0.5663, allocations: 171.6 kB / 0.6297 GB, free: 5.785 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.5665, allocations: 121.4 kB / 0.6298 GB, free: 5.66 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00234/0.5689, allocations: 1.306 MB / 0.6311 GB, free: 4.352 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.5689, allocations: 0 / 0.6311 GB, free: 4.352 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5689, allocations: 4 kB / 0.6311 GB, free: 4.348 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.5689, allocations: 0 / 0.6311 GB, free: 4.348 MB / 462.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.001548/0.5705, allocations: 0.9468 MB / 0.632 GB, free: 3.34 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.5705, allocations: 8.031 kB / 0.632 GB, free: 3.332 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.604e-05/0.5706, allocations: 86.47 kB / 0.6321 GB, free: 3.238 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.5709, allocations: 59.42 kB / 0.6322 GB, free: 3.18 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/0.5713, allocations: 358.1 kB / 0.6325 GB, free: 2.789 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.5714, allocations: 29 kB / 0.6326 GB, free: 2.762 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.845e-05/0.5714, allocations: 36 kB / 0.6326 GB, free: 2.727 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008544/0.5723, allocations: 0.5273 MB / 0.6331 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.5723, allocations: 0 / 0.6331 GB, free: 2.168 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.576e-05/0.5724, allocations: 16 kB / 0.6331 GB, free: 2.152 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.5724, allocations: 12 kB / 0.6331 GB, free: 2.141 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008472/0.5732, allocations: 0.4969 MB / 0.6336 GB, free: 1.645 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002533/0.5758, allocations: 1.982 MB / 0.6355 GB, free: 15.52 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007029/0.5765, allocations: 457.5 kB / 0.636 GB, free: 15.03 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003152/0.5768, allocations: 186.5 kB / 0.6362 GB, free: 14.84 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007708/0.5776, allocations: 0.9572 MB / 0.6371 GB, free: 13.68 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.5776, allocations: 42.5 kB / 0.6371 GB, free: 13.62 MB / 478.1 MB Notification: Performance of pre-optimization done (n=30): time 2.054e-06/0.5777, allocations: 4 kB / 0.6371 GB, free: 13.62 MB / 478.1 MB Notification: Performance of matching and sorting (n=30): time 0.001066/0.5787, allocations: 0.4931 MB / 0.6376 GB, free: 13.12 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.5788, allocations: 110.8 kB / 0.6377 GB, free: 12.99 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004249/0.5792, allocations: 401.6 kB / 0.6381 GB, free: 12.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.5793, allocations: 37.7 kB / 0.6381 GB, free: 12.55 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.5794, allocations: 208.2 kB / 0.6383 GB, free: 12.34 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.888e-05/0.5795, allocations: 106.5 kB / 0.6384 GB, free: 12.23 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.509e-05/0.5796, allocations: 8 kB / 0.6385 GB, free: 12.23 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5797, allocations: 346.8 kB / 0.6388 GB, free: 11.88 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.58, allocations: 168.6 kB / 0.6389 GB, free: 11.71 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003624/0.5804, allocations: 254.3 kB / 0.6392 GB, free: 11.42 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.5808, allocations: 250.9 kB / 0.6394 GB, free: 11.17 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5808, allocations: 0 / 0.6394 GB, free: 11.17 MB / 478.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009484/0.5817, allocations: 0.5626 MB / 0.64 GB, free: 10.59 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.668e-05/0.5818, allocations: 65.69 kB / 0.64 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.5818, allocations: 4 kB / 0.64 GB, free: 10.51 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.5818, allocations: 7.938 kB / 0.6401 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/0.5822, allocations: 92.22 kB / 0.6401 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.5823, allocations: 11.94 kB / 0.6402 GB, free: 10.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003495/0.5826, allocations: 59.42 kB / 0.6402 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.5827, allocations: 19.98 kB / 0.6402 GB, free: 10.32 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002008/0.5829, allocations: 181.7 kB / 0.6404 GB, free: 10.13 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.583, allocations: 51.47 kB / 0.6405 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.584, allocations: 0.4996 MB / 0.6409 GB, free: 9.582 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.802e-06/0.584, allocations: 4 kB / 0.6409 GB, free: 9.578 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.584, allocations: 0 / 0.6409 GB, free: 9.578 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.584, allocations: 11.98 kB / 0.641 GB, free: 9.566 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/0.5868, allocations: 2.438 MB / 0.6433 GB, free: 6.781 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.5868, allocations: 0 / 0.6433 GB, free: 6.781 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.5871, allocations: 59.91 kB / 0.6434 GB, free: 6.723 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.5871, allocations: 4 kB / 0.6434 GB, free: 6.719 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.53e-05/0.5872, allocations: 12.19 kB / 0.6434 GB, free: 6.707 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.5872, allocations: 7.938 kB / 0.6434 GB, free: 6.699 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5872, allocations: 7.984 kB / 0.6434 GB, free: 6.691 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007161/0.5879, allocations: 0.6472 MB / 0.6441 GB, free: 6.008 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000128/0.588, allocations: 144.4 kB / 0.6442 GB, free: 5.848 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.494e-05/0.5881, allocations: 8 kB / 0.6442 GB, free: 5.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.5886, allocations: 35.97 kB / 0.6442 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.523e-05/0.5886, allocations: 27.86 kB / 0.6443 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.5887, allocations: 19.98 kB / 0.6443 GB, free: 5.758 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0003773/0.5891, allocations: 355.1 kB / 0.6446 GB, free: 5.41 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5891, allocations: 0 / 0.6446 GB, free: 5.41 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0009896/0.5901, allocations: 339.7 kB / 0.6449 GB, free: 5.078 MB / 478.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00197/0.592, allocations: 1.557 MB / 0.6465 GB, free: 3.484 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0007993/0.5929, allocations: 489.4 kB / 0.6469 GB, free: 2.984 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.5929, allocations: 4 kB / 0.6469 GB, free: 2.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002946/0.5932, allocations: 159.8 kB / 0.6471 GB, free: 2.824 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.5945, allocations: 258 kB / 0.6473 GB, free: 2.582 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.5984, allocations: 2.666 MB / 0.6499 GB, free: 15.79 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.5988, allocations: 0.8383 MB / 0.6508 GB, free: 14.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004493/0.5992, allocations: 116.2 kB / 0.6509 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002122/0.5995, allocations: 147.4 kB / 0.651 GB, free: 14.68 MB / 494.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5995, allocations: 0 / 0.651 GB, free: 14.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03296/0.6324, allocations: 18.24 MB / 0.6688 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001956/0.6327, allocations: 254.9 kB / 0.6691 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.321/2.953, allocations: 0 / 0.6691 GB, free: 12.41 MB / 0.4981 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat does not exist to compare? outputFormat=mat