Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009834/0.0009834, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001214/0.001215, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.23/0.23, allocations: 45.92 MB / 344.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.00028, allocations: 4 kB / 418.2 MB, free: 20.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1269, allocations: 63.47 MB / 481.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.4316/0.5586, allocations: 165.2 MB / 0.6317 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.5606, allocations: 0.8988 MB / 0.6326 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002204/0.5608, allocations: 7.844 kB / 0.6326 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005454/0.5614, allocations: 143 kB / 0.6327 GB, free: 15.84 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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.0005828/0.562, allocations: 282.4 kB / 0.633 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004384/0.5664, allocations: 1.398 MB / 0.6344 GB, free: 14.17 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.5677, allocations: 1.1 MB / 0.6355 GB, free: 13.07 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004335/0.5682, allocations: 259 kB / 0.6357 GB, free: 12.81 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003853/0.572, allocations: 1.344 MB / 0.637 GB, free: 11.46 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006085/0.5727, allocations: 314.9 kB / 0.6373 GB, free: 11.16 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 7.053e-05/0.5727, allocations: 20 kB / 0.6373 GB, free: 11.14 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004578/0.5773, allocations: 2.293 MB / 0.6396 GB, free: 8.84 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.5776, allocations: 171.5 kB / 0.6397 GB, free: 8.672 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001686/0.5778, allocations: 121.5 kB / 0.6398 GB, free: 8.547 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00228/0.58, allocations: 1.314 MB / 0.6411 GB, free: 7.23 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.5801, allocations: 8 kB / 0.6411 GB, free: 7.223 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5801, allocations: 0 / 0.6411 GB, free: 7.223 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.5801, allocations: 0 / 0.6411 GB, free: 7.223 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.001606/0.5817, allocations: 0.9623 MB / 0.6421 GB, free: 6.199 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.5817, allocations: 12.03 kB / 0.6421 GB, free: 6.188 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.936e-05/0.5818, allocations: 74.48 kB / 0.6422 GB, free: 6.105 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002379/0.5821, allocations: 59.42 kB / 0.6422 GB, free: 6.047 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.5826, allocations: 358.1 kB / 0.6426 GB, free: 5.656 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.5826, allocations: 29 kB / 0.6426 GB, free: 5.629 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.472e-05/0.5827, allocations: 39.94 kB / 0.6426 GB, free: 5.59 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008759/0.5836, allocations: 0.5276 MB / 0.6431 GB, free: 5.031 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.5836, allocations: 0 / 0.6431 GB, free: 5.031 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.747e-05/0.5837, allocations: 16 kB / 0.6432 GB, free: 5.016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.5837, allocations: 15.95 kB / 0.6432 GB, free: 5 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008274/0.5845, allocations: 0.4915 MB / 0.6437 GB, free: 4.508 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.5872, allocations: 1.978 MB / 0.6456 GB, free: 2.387 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007317/0.5879, allocations: 460.7 kB / 0.646 GB, free: 1.891 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003201/0.5882, allocations: 190.5 kB / 0.6462 GB, free: 1.695 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008333/0.5891, allocations: 0.9455 MB / 0.6471 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.5891, allocations: 42.5 kB / 0.6472 GB, free: 0.4961 MB / 478.1 MB Notification: Performance of pre-optimization done (n=30): time 1.984e-06/0.5891, allocations: 4 kB / 0.6472 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of matching and sorting (n=30): time 0.001105/0.5903, allocations: 0.5006 MB / 0.6477 GB, free: 15.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.5903, allocations: 110.8 kB / 0.6478 GB, free: 15.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004333/0.5908, allocations: 397.5 kB / 0.6481 GB, free: 15.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.5908, allocations: 33.7 kB / 0.6482 GB, free: 15.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.591, allocations: 208.2 kB / 0.6484 GB, free: 15.21 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.614e-05/0.5911, allocations: 110.4 kB / 0.6485 GB, free: 15.11 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.5911, allocations: 8 kB / 0.6485 GB, free: 15.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.5913, allocations: 354.8 kB / 0.6488 GB, free: 14.74 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.5916, allocations: 156.7 kB / 0.649 GB, free: 14.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003666/0.592, allocations: 258.2 kB / 0.6492 GB, free: 14.29 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004043/0.5924, allocations: 262.8 kB / 0.6495 GB, free: 14.03 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.5924, allocations: 0 / 0.6495 GB, free: 14.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001012/0.5934, allocations: 0.5548 MB / 0.65 GB, free: 13.45 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/0.5935, allocations: 67.34 kB / 0.6501 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.5935, allocations: 4 kB / 0.6501 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.5935, allocations: 4 kB / 0.6501 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004015/0.5939, allocations: 92.25 kB / 0.6502 GB, free: 13.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.594, allocations: 4 kB / 0.6502 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.5943, allocations: 63.42 kB / 0.6502 GB, free: 13.21 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.059e-05/0.5944, allocations: 20 kB / 0.6503 GB, free: 13.19 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002186/0.5946, allocations: 182.2 kB / 0.6504 GB, free: 13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.5947, allocations: 47.53 kB / 0.6505 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.5958, allocations: 0.4889 MB / 0.651 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.5958, allocations: 4 kB / 0.651 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.5958, allocations: 0 / 0.651 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.5958, allocations: 11.92 kB / 0.651 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002884/0.5987, allocations: 2.443 MB / 0.6534 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.5987, allocations: 0 / 0.6534 GB, free: 9.656 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.599, allocations: 71.89 kB / 0.6534 GB, free: 9.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.5991, allocations: 4 kB / 0.6534 GB, free: 9.582 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.5991, allocations: 8 kB / 0.6534 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.5991, allocations: 7.953 kB / 0.6534 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.5991, allocations: 3.938 kB / 0.6534 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007661/0.5999, allocations: 0.6405 MB / 0.6541 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.6, allocations: 148.5 kB / 0.6542 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.208e-05/0.6001, allocations: 12 kB / 0.6542 GB, free: 8.711 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004252/0.6006, allocations: 31.97 kB / 0.6543 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.731e-05/0.6007, allocations: 35.8 kB / 0.6543 GB, free: 8.645 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-05/0.6007, allocations: 15.98 kB / 0.6543 GB, free: 8.629 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004426/0.6012, allocations: 359.1 kB / 0.6546 GB, free: 8.281 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6012, allocations: 0 / 0.6546 GB, free: 8.281 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001226/0.6024, allocations: 347.6 kB / 0.655 GB, free: 7.941 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 (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.002524/0.6049, allocations: 1.574 MB / 0.6565 GB, free: 6.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008428/0.6058, allocations: 467.1 kB / 0.657 GB, free: 5.859 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6058, allocations: 12 kB / 0.657 GB, free: 5.848 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.6061, allocations: 163.8 kB / 0.6571 GB, free: 5.688 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/0.6075, allocations: 252.8 kB / 0.6574 GB, free: 5.449 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004499/0.612, allocations: 2.675 MB / 0.66 GB, free: 2.645 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.6125, allocations: 0.8422 MB / 0.6608 GB, free: 1.777 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000496/0.613, allocations: 122.5 kB / 0.6609 GB, free: 1.664 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002286/0.6132, allocations: 147.4 kB / 0.6611 GB, free: 1.52 MB / 494.1 MB Notification: Performance of SimCode: time 1.002e-06/0.6132, allocations: 0 / 0.6611 GB, free: 1.52 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03329/0.6465, allocations: 18.4 MB / 0.679 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.6468, allocations: 249.1 kB / 0.6793 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.363/3.01, allocations: 0 / 0.6793 GB, free: 15.1 MB / 0.5137 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat does not exist to compare? outputFormat=mat