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.0007683/0.0007684, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 183.5 kB / 16.59 MB, free: 6.84 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.303/1.303, allocations: 205.4 MB / 222.7 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3251/0.3251, allocations: 43.55 MB / 314.6 MB, free: 9.012 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.0005052/0.0005052, allocations: 14.97 kB / 384 MB, free: 8.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1114, allocations: 58.87 MB / 442.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3702/0.4816, allocations: 169.5 MB / 0.5981 GB, free: 2.098 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.001701/0.4834, allocations: 0.8931 MB / 0.5989 GB, free: 1.203 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001838/0.4836, allocations: 11.94 kB / 0.599 GB, free: 1.191 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005301/0.4841, allocations: 139 kB / 0.5991 GB, free: 1.055 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.0005208/0.4847, allocations: 282.4 kB / 0.5994 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004442/0.4891, allocations: 1.601 MB / 0.6009 GB, free: 15.18 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001094/0.4902, allocations: 1.098 MB / 0.602 GB, free: 14.09 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.4906, allocations: 265.2 kB / 0.6022 GB, free: 13.84 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003616/0.4942, allocations: 1.472 MB / 0.6037 GB, free: 12.36 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000512/0.4947, allocations: 310.9 kB / 0.604 GB, free: 12.06 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 6.119e-05/0.4948, allocations: 20 kB / 0.604 GB, free: 12.04 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004127/0.4989, allocations: 2.445 MB / 0.6064 GB, free: 9.59 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001809/0.4991, allocations: 167.5 kB / 0.6065 GB, free: 9.426 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001512/0.4993, allocations: 117.5 kB / 0.6067 GB, free: 9.305 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001658/0.501, allocations: 1.372 MB / 0.608 GB, free: 7.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.82e-06/0.501, allocations: 4 kB / 0.608 GB, free: 7.926 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.501, allocations: 4 kB / 0.608 GB, free: 7.922 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.501, allocations: 4 kB / 0.608 GB, free: 7.918 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.001505/0.5025, allocations: 0.9679 MB / 0.609 GB, free: 6.891 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.5026, allocations: 8.031 kB / 0.609 GB, free: 6.883 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.842e-05/0.5027, allocations: 74.52 kB / 0.609 GB, free: 6.801 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000217/0.5029, allocations: 59.42 kB / 0.6091 GB, free: 6.742 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.5034, allocations: 362.1 kB / 0.6094 GB, free: 6.352 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.5034, allocations: 25 kB / 0.6095 GB, free: 6.328 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.302e-05/0.5035, allocations: 36 kB / 0.6095 GB, free: 6.293 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008199/0.5043, allocations: 0.5345 MB / 0.61 GB, free: 5.73 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.5043, allocations: 4 kB / 0.61 GB, free: 5.727 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.208e-05/0.5044, allocations: 23.88 kB / 0.61 GB, free: 5.703 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.091e-05/0.5044, allocations: 8 kB / 0.6101 GB, free: 5.695 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007947/0.5052, allocations: 0.4957 MB / 0.6105 GB, free: 5.199 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002316/0.5075, allocations: 1.977 MB / 0.6125 GB, free: 3.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.5082, allocations: 460.7 kB / 0.6129 GB, free: 2.594 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.5085, allocations: 186.5 kB / 0.6131 GB, free: 2.402 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007325/0.5093, allocations: 0.9455 MB / 0.614 GB, free: 1.254 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.5093, allocations: 38.56 kB / 0.614 GB, free: 1.207 MB / 478.1 MB Notification: Performance of pre-optimization done (n=30): time 1.673e-06/0.5093, allocations: 0 / 0.614 GB, free: 1.207 MB / 478.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009859/0.5103, allocations: 0.5077 MB / 0.6145 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.5104, allocations: 114.7 kB / 0.6146 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003692/0.5108, allocations: 405.6 kB / 0.615 GB, free: 160 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.967e-05/0.5108, allocations: 33.7 kB / 0.6151 GB, free: 120 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.511, allocations: 220.2 kB / 0.6153 GB, free: 15.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.08e-05/0.511, allocations: 98.47 kB / 0.6154 GB, free: 15.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.5111, allocations: 4 kB / 0.6154 GB, free: 15.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.5112, allocations: 354.8 kB / 0.6157 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.5115, allocations: 156.6 kB / 0.6159 GB, free: 15.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003337/0.5118, allocations: 262 kB / 0.6161 GB, free: 14.99 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.5122, allocations: 247.3 kB / 0.6163 GB, free: 14.73 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.5122, allocations: 4 kB / 0.6164 GB, free: 14.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008901/0.5131, allocations: 0.5536 MB / 0.6169 GB, free: 14.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.342e-05/0.5132, allocations: 71.33 kB / 0.617 GB, free: 14.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.5132, allocations: 4 kB / 0.617 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5132, allocations: 8 kB / 0.617 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003665/0.5136, allocations: 84.17 kB / 0.6171 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.5136, allocations: 11.95 kB / 0.6171 GB, free: 13.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003134/0.5139, allocations: 63.42 kB / 0.6171 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.514, allocations: 23.98 kB / 0.6171 GB, free: 13.89 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.0001943/0.5142, allocations: 185.6 kB / 0.6173 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.994e-05/0.5143, allocations: 39.53 kB / 0.6174 GB, free: 13.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009431/0.5153, allocations: 498.1 kB / 0.6178 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.5153, allocations: 7.984 kB / 0.6178 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5153, allocations: 0 / 0.6178 GB, free: 13.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.5153, allocations: 3.953 kB / 0.6178 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002798/0.5181, allocations: 2.444 MB / 0.6202 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.5181, allocations: 4.875 kB / 0.6202 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.5184, allocations: 67.86 kB / 0.6203 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.5184, allocations: 7.938 kB / 0.6203 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.5185, allocations: 8 kB / 0.6203 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.212e-06/0.5185, allocations: 12.17 kB / 0.6203 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.5185, allocations: 6.562 kB / 0.6203 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007354/0.5192, allocations: 0.6317 MB / 0.621 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.5194, allocations: 148.4 kB / 0.6211 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.891e-05/0.5195, allocations: 15.94 kB / 0.6211 GB, free: 9.414 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.5199, allocations: 23.98 kB / 0.6211 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.295e-05/0.52, allocations: 32.12 kB / 0.6212 GB, free: 9.359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.089e-05/0.52, allocations: 23.98 kB / 0.6212 GB, free: 9.336 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0004299/0.5205, allocations: 351.1 kB / 0.6215 GB, free: 8.996 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5205, allocations: 0 / 0.6215 GB, free: 8.996 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001438/0.5219, allocations: 375.7 kB / 0.6219 GB, free: 8.629 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.002436/0.5244, allocations: 1.646 MB / 0.6235 GB, free: 6.949 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008572/0.5252, allocations: 471 kB / 0.6239 GB, free: 6.465 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.5253, allocations: 4.75 kB / 0.6239 GB, free: 6.461 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003006/0.5256, allocations: 173.9 kB / 0.6241 GB, free: 6.293 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00132/0.5269, allocations: 257.2 kB / 0.6244 GB, free: 6.047 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004011/0.5309, allocations: 2.695 MB / 0.627 GB, free: 3.242 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000449/0.5314, allocations: 0.8422 MB / 0.6278 GB, free: 2.379 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004654/0.5319, allocations: 118.1 kB / 0.6279 GB, free: 2.266 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.5321, allocations: 147.4 kB / 0.6281 GB, free: 2.121 MB / 494.1 MB Notification: Performance of SimCode: time 7.82e-07/0.5321, allocations: 0 / 0.6281 GB, free: 2.121 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2077/0.7398, allocations: 19.37 MB / 0.647 GB, free: 151.1 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.74, allocations: 240.3 kB / 0.6472 GB, free: 150.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.183/2.923, allocations: 4 kB / 0.6472 GB, free: 150.8 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat does not exist to compare? outputFormat=mat