Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001475/0.001475, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001551/0.001551, allocations: 197.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.223/0.223, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002532/0.002532, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3487/0.3513, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.2191/0.5704, allocations: 184.7 MB / 0.7109 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002066/0.5725, allocations: 0.8938 MB / 0.7118 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002662/0.5728, allocations: 7.938 kB / 0.7118 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0007064/0.5736, allocations: 206.7 kB / 0.712 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0006213/0.5742, allocations: 290.3 kB / 0.7123 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.005293/0.5795, allocations: 1.925 MB / 0.7142 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001331/0.5809, allocations: 0.9788 MB / 0.7151 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005425/0.5814, allocations: 329.1 kB / 0.7155 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003797/0.5852, allocations: 1.554 MB / 0.717 GB, free: 2.223 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006224/0.5859, allocations: 326.8 kB / 0.7173 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.542e-05/0.586, allocations: 47.94 kB / 0.7173 GB, free: 1.855 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3492/0.9352, allocations: 2.778 MB / 0.72 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003746/0.9357, allocations: 196.2 kB / 0.7202 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004922/0.9362, allocations: 275.3 kB / 0.7205 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004747/0.9409, allocations: 2.055 MB / 0.7225 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.941, allocations: 3.328 kB / 0.7225 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.114e-06/0.941, allocations: 0 / 0.7225 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.6e-05/0.941, allocations: 0.5 kB / 0.7225 GB, free: 5.031 MB / 0.5606 GB 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.003501/0.9445, allocations: 1.078 MB / 0.7236 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.814e-05/0.9446, allocations: 9.516 kB / 0.7236 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001232/0.9447, allocations: 78.45 kB / 0.7236 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003718/0.9451, allocations: 57.39 kB / 0.7237 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007141/0.9458, allocations: 388.6 kB / 0.7241 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.9459, allocations: 26.78 kB / 0.7241 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.195e-05/0.946, allocations: 37.86 kB / 0.7241 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009809/0.9469, allocations: 0.5205 MB / 0.7246 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.947, allocations: 0.8438 kB / 0.7246 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/0.947, allocations: 17.75 kB / 0.7246 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.9471, allocations: 9.094 kB / 0.7247 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009074/0.948, allocations: 0.4889 MB / 0.7251 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.9506, allocations: 1.974 MB / 0.7271 GB, free: 18.73 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007177/0.9513, allocations: 460.6 kB / 0.7275 GB, free: 18.57 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.9516, allocations: 178.3 kB / 0.7277 GB, free: 18.55 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009113/0.9526, allocations: 0.9504 MB / 0.7286 GB, free: 17.52 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.9526, allocations: 42.38 kB / 0.7286 GB, free: 17.48 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=30): time 2.885e-06/0.9526, allocations: 0.9375 kB / 0.7286 GB, free: 17.48 MB / 0.5762 GB Notification: Performance of matching and sorting (n=30): time 0.001142/0.9538, allocations: 0.4949 MB / 0.7291 GB, free: 17.42 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/0.9538, allocations: 110.6 kB / 0.7292 GB, free: 17.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000451/0.9543, allocations: 395.5 kB / 0.7296 GB, free: 17.18 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.367e-05/0.9544, allocations: 35.89 kB / 0.7296 GB, free: 17.15 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.9545, allocations: 218.2 kB / 0.7298 GB, free: 17.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.9546, allocations: 110.2 kB / 0.73 GB, free: 16.95 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.9547, allocations: 82.56 kB / 0.73 GB, free: 16.93 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001575/0.9549, allocations: 357.6 kB / 0.7304 GB, free: 16.62 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.9552, allocations: 151 kB / 0.7305 GB, free: 16.62 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003412/0.9555, allocations: 259.2 kB / 0.7308 GB, free: 16.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006289/0.9562, allocations: 482.7 kB / 0.7312 GB, free: 16.32 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.9562, allocations: 3.375 kB / 0.7312 GB, free: 16.32 MB / 0.5762 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008862/0.9571, allocations: 0.5543 MB / 0.7318 GB, free: 16.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.798e-05/0.9572, allocations: 63.03 kB / 0.7318 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.9572, allocations: 3.188 kB / 0.7318 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.9572, allocations: 7.938 kB / 0.7318 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003624/0.9576, allocations: 82.34 kB / 0.7319 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.9576, allocations: 9.188 kB / 0.7319 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.958, allocations: 47.05 kB / 0.732 GB, free: 16.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.914e-05/0.958, allocations: 23.72 kB / 0.732 GB, free: 16.11 MB / 0.5762 GB 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.0002558/0.9583, allocations: 191.8 kB / 0.7322 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.9584, allocations: 46.03 kB / 0.7322 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009742/0.9594, allocations: 486.6 kB / 0.7327 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.9594, allocations: 4.906 kB / 0.7327 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.9594, allocations: 0.9375 kB / 0.7327 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.9594, allocations: 5.5 kB / 0.7327 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003062/0.9625, allocations: 2.437 MB / 0.7351 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.9625, allocations: 11.41 kB / 0.7351 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.9628, allocations: 60.98 kB / 0.7351 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.998e-06/0.9629, allocations: 9.484 kB / 0.7352 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.537e-05/0.9629, allocations: 8.797 kB / 0.7352 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.9629, allocations: 4.406 kB / 0.7352 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.9629, allocations: 2.406 kB / 0.7352 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007928/0.9637, allocations: 0.6411 MB / 0.7358 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.9638, allocations: 126.9 kB / 0.7359 GB, free: 13.53 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.596e-05/0.9639, allocations: 11.67 kB / 0.7359 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.9643, allocations: 19.34 kB / 0.7359 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.347e-05/0.9644, allocations: 26.66 kB / 0.736 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.9645, allocations: 22.03 kB / 0.736 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003556/0.9648, allocations: 370.2 kB / 0.7363 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9648, allocations: 0 / 0.7363 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001272/0.9661, allocations: 351.6 kB / 0.7367 GB, free: 13.38 MB / 0.5762 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.002367/0.9685, allocations: 1.594 MB / 0.7382 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007813/0.9693, allocations: 470.7 kB / 0.7387 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.9693, allocations: 1.844 kB / 0.7387 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.9696, allocations: 166 kB / 0.7388 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001418/0.971, allocations: 286 kB / 0.7391 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/0.9767, allocations: 4.6 MB / 0.7436 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.9771, allocations: 0.8375 MB / 0.7444 GB, free: 9.508 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004931/0.9776, allocations: 119.3 kB / 0.7445 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/0.9779, allocations: 146.5 kB / 0.7447 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of SimCode: time 6.41e-07/0.9779, allocations: 0.9375 kB / 0.7447 GB, free: 9.484 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04382/1.022, allocations: 19.72 MB / 0.7639 GB, free: 6.988 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.267/10.29, allocations: 9.469 kB / 0.764 GB, free: 6.984 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Fluid_TestComponents_Sensors_TestTraceSubstances.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.pipe 2>&1)