Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 169.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 221.5 MB / 230.7 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 101.5 kB / 281.6 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2103/0.2103, allocations: 44.15 MB / 376.5 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.858e-05, allocations: 7.938 kB / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1431, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.171, allocations: 316.8 MB / 0.8041 GB, free: 71.57 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/1.172, allocations: 85.2 kB / 0.8042 GB, free: 71.53 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.5772/1.749, allocations: 99 MB / 0.9009 GB, free: 143 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.704e-06/1.749, allocations: 1.125 kB / 0.9009 GB, free: 143 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.268e-05/1.749, allocations: 14.34 kB / 0.9009 GB, free: 143 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001941/1.751, allocations: 0.8224 MB / 0.9017 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/1.751, allocations: 13.17 kB / 0.9017 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/1.751, allocations: 60.83 kB / 0.9018 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008926/1.752, allocations: 461.8 kB / 0.9022 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.461e-05/1.752, allocations: 11.09 kB / 0.9022 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/1.752, allocations: 23.36 kB / 0.9022 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007581/1.753, allocations: 391.9 kB / 0.9026 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007248/1.754, allocations: 489.2 kB / 0.9031 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/1.754, allocations: 1.094 kB / 0.9031 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/1.754, allocations: 4.938 kB / 0.9031 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.335e-05/1.754, allocations: 28.05 kB / 0.9031 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/1.757, allocations: 2.167 MB / 0.9052 GB, free: 140.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003742/1.757, allocations: 221 kB / 0.9054 GB, free: 140.9 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/1.757, allocations: 123.4 kB / 0.9056 GB, free: 140.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001117/1.759, allocations: 1.04 MB / 0.9066 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/1.759, allocations: 211 kB / 0.9068 GB, free: 140 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 2.004e-06/1.759, allocations: 0 / 0.9068 GB, free: 140 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0007632/1.76, allocations: 274.8 kB / 0.907 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/1.76, allocations: 240.2 kB / 0.9073 GB, free: 139.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004372/1.76, allocations: 381.8 kB / 0.9076 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/1.76, allocations: 26.86 kB / 0.9077 GB, free: 139.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001656/1.76, allocations: 292.2 kB / 0.9079 GB, free: 139.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.967e-05/1.76, allocations: 61.08 kB / 0.908 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.943e-05/1.76, allocations: 0 / 0.908 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.237e-05/1.761, allocations: 355.7 kB / 0.9083 GB, free: 139 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/1.761, allocations: 111.9 kB / 0.9084 GB, free: 139 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/1.761, allocations: 293.3 kB / 0.9087 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008194/1.762, allocations: 294.3 kB / 0.909 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.762, allocations: 1.344 kB / 0.909 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001265/1.763, allocations: 0.5646 MB / 0.9096 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004006/1.764, allocations: 1.697 MB / 0.9112 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/1.764, allocations: 5.5 kB / 0.9112 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/1.764, allocations: 9.656 kB / 0.9112 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/1.764, allocations: 78.3 kB / 0.9113 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/1.764, allocations: 14.23 kB / 0.9113 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004014/1.764, allocations: 46.86 kB / 0.9114 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/1.764, allocations: 19.56 kB / 0.9114 GB, free: 137 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.056e-06/1.764, allocations: 6.469 kB / 0.9114 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001039/1.765, allocations: 0.4906 MB / 0.9119 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/1.765, allocations: 4.312 kB / 0.9119 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.877e-06/1.766, allocations: 6.469 kB / 0.9119 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/1.766, allocations: 75.66 kB / 0.9119 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/1.766, allocations: 6.594 kB / 0.912 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/1.766, allocations: 44.66 kB / 0.912 GB, free: 137 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/1.766, allocations: 19.75 kB / 0.912 GB, free: 137 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * 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.0001393/1.766, allocations: 163.8 kB / 0.9122 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000635/1.767, allocations: 281.7 kB / 0.9124 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.674e-05/1.767, allocations: 45.56 kB / 0.9125 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00067/1.768, allocations: 323.4 kB / 0.9128 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/1.768, allocations: 2.281 kB / 0.9128 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.768, allocations: 3.469 kB / 0.9128 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/1.768, allocations: 2 kB / 0.9128 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004261/1.768, allocations: 368.6 kB / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/1.768, allocations: 0 / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/1.768, allocations: 25.48 kB / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/1.768, allocations: 1.031 kB / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/1.768, allocations: 3.594 kB / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.768, allocations: 1.156 kB / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.768, allocations: 0 / 0.9132 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005933/1.769, allocations: 338.1 kB / 0.9135 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 9.966e-05/1.769, allocations: 127.3 kB / 0.9136 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.907e-05/1.769, allocations: 6.531 kB / 0.9136 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002371/1.769, allocations: 15.77 kB / 0.9136 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.045e-05/1.769, allocations: 9.016 kB / 0.9137 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/1.77, allocations: 11.94 kB / 0.9137 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003137/1.77, allocations: 291.2 kB / 0.9139 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/1.77, allocations: 3.828 kB / 0.9139 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001723/1.772, allocations: 473.8 kB / 0.9144 GB, free: 136.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,p_table.nextEvent,p_table.nextEventScaled) * Number of discrete states: 6 (p_table.nextEvent,p_table.last,p_table.nextEventScaled,p_table.b,p_table.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.002438/1.774, allocations: 1.264 MB / 0.9156 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001125/1.775, allocations: 0.6144 MB / 0.9162 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.775, allocations: 1.188 kB / 0.9162 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002149/1.775, allocations: 171.2 kB / 0.9164 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008479/1.776, allocations: 150 kB / 0.9165 GB, free: 135.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/1.778, allocations: 0.7375 MB / 0.9173 GB, free: 135 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/1.779, allocations: 0.8563 MB / 0.9181 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.000623/1.779, allocations: 156.6 kB / 0.9182 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/1.779, allocations: 149.5 kB / 0.9184 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/1.779, allocations: 0 / 0.9184 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04266/1.822, allocations: 14.67 MB / 0.9327 GB, free: 133.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002106/1.822, allocations: 181.3 kB / 0.9329 GB, free: 133.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.604/4.426, allocations: 0 / 0.9329 GB, free: 133.4 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Pipes_StaticPipe.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe_res.mat does not exist to compare? outputFormat=mat