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.001623/0.001623, allocations: 180.7 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 221.4 MB / 236 MB, free: 2.902 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.001534/0.001534, allocations: 87.53 kB / 287 MB, free: 188 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2609/0.2609, allocations: 44.16 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.118e-05/3.12e-05, allocations: 224 / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.1572, allocations: 61.92 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.111/1.268, allocations: 317.4 MB / 0.8118 GB, free: 91.78 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/1.268, allocations: 84.52 kB / 0.8119 GB, free: 91.74 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.2252/1.494, allocations: 99.78 MB / 0.9093 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.464e-06/1.494, allocations: 0 / 0.9093 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.177e-05/1.494, allocations: 8 kB / 0.9093 GB, free: 11.07 MB / 0.5261 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.00248/1.496, allocations: 0.8356 MB / 0.9101 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/1.496, allocations: 12.03 kB / 0.9102 GB, free: 10.18 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002091/1.496, allocations: 66.53 kB / 0.9102 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004006/1.497, allocations: 67.33 kB / 0.9103 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/1.498, allocations: 459.8 kB / 0.9107 GB, free: 9.547 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/1.498, allocations: 24.56 kB / 0.9107 GB, free: 9.523 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.757e-05/1.498, allocations: 28 kB / 0.9108 GB, free: 9.496 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009966/1.499, allocations: 0.5164 MB / 0.9113 GB, free: 8.941 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/1.499, allocations: 11.88 kB / 0.9113 GB, free: 8.93 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.496e-05/1.499, allocations: 12 kB / 0.9113 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.584e-05/1.499, allocations: 28.55 kB / 0.9113 GB, free: 8.891 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008246/1.5, allocations: 446.2 kB / 0.9118 GB, free: 8.453 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00397/1.504, allocations: 2.25 MB / 0.9139 GB, free: 6.059 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004677/1.505, allocations: 226.6 kB / 0.9142 GB, free: 5.828 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002144/1.505, allocations: 128.8 kB / 0.9143 GB, free: 5.699 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001523/1.506, allocations: 1.064 MB / 0.9153 GB, free: 4.516 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003417/1.507, allocations: 212.5 kB / 0.9155 GB, free: 4.277 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 2.625e-06/1.507, allocations: 0 / 0.9155 GB, free: 4.277 MB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.0006809/1.508, allocations: 295.7 kB / 0.9158 GB, free: 3.977 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001516/1.508, allocations: 243.3 kB / 0.916 GB, free: 3.684 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006656/1.508, allocations: 463.8 kB / 0.9165 GB, free: 3.219 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/1.508, allocations: 33.7 kB / 0.9165 GB, free: 3.18 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/1.509, allocations: 279.3 kB / 0.9168 GB, free: 2.902 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.345e-05/1.509, allocations: 51.27 kB / 0.9168 GB, free: 2.852 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-05/1.509, allocations: 12 kB / 0.9168 GB, free: 2.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001879/1.509, allocations: 362.7 kB / 0.9172 GB, free: 2.477 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/1.509, allocations: 120.3 kB / 0.9173 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003759/1.51, allocations: 300 kB / 0.9176 GB, free: 1.992 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003302/1.51, allocations: 194.7 kB / 0.9178 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/1.51, allocations: 4 kB / 0.9178 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008947/1.511, allocations: 0.5051 MB / 0.9183 GB, free: 1.277 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.3733/1.884, allocations: 1.685 MB / 0.9199 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.109e-05/1.884, allocations: 4.594 kB / 0.9199 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.139e-05/1.884, allocations: 6.812 kB / 0.9199 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005459/1.885, allocations: 76.11 kB / 0.92 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.249e-05/1.885, allocations: 12.92 kB / 0.92 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006924/1.886, allocations: 63.86 kB / 0.9201 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.739e-05/1.886, allocations: 21.69 kB / 0.9201 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/1.886, allocations: 3.969 kB / 0.9201 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001108/1.887, allocations: 456.9 kB / 0.9205 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/1.887, allocations: 10.69 kB / 0.9205 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/1.887, allocations: 6.562 kB / 0.9206 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/1.887, allocations: 77.08 kB / 0.9206 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/1.887, allocations: 9.922 kB / 0.9206 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004362/1.888, allocations: 50.88 kB / 0.9207 GB, free: 147 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.947e-05/1.888, allocations: 22.17 kB / 0.9207 GB, free: 147 MB / 0.5261 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.0001916/1.888, allocations: 158.9 kB / 0.9209 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/1.888, allocations: 54.98 kB / 0.9209 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008017/1.889, allocations: 363.4 kB / 0.9213 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/1.889, allocations: 2.062 kB / 0.9213 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/1.889, allocations: 3.656 kB / 0.9213 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/1.889, allocations: 1.875 kB / 0.9213 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000605/1.889, allocations: 407.9 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/1.89, allocations: 3.125 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/1.89, allocations: 32.67 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/1.89, allocations: 1.094 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/1.89, allocations: 8.625 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/1.89, allocations: 2.625 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.89, allocations: 1.875 kB / 0.9217 GB, free: 146.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006597/1.89, allocations: 359.6 kB / 0.922 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/1.891, allocations: 135.5 kB / 0.9222 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/1.891, allocations: 9.625 kB / 0.9222 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/1.891, allocations: 19.28 kB / 0.9222 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.098e-05/1.891, allocations: 13.7 kB / 0.9222 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.421e-05/1.891, allocations: 12.45 kB / 0.9222 GB, free: 146.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005842/1.892, allocations: 364.2 kB / 0.9226 GB, free: 146.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/1.892, allocations: 0 / 0.9226 GB, free: 146.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001904/1.894, allocations: 475.8 kB / 0.923 GB, free: 146.3 MB / 0.5261 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.002156/1.896, allocations: 1.309 MB / 0.9243 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001157/1.897, allocations: 0.6525 MB / 0.9249 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/1.897, allocations: 0 / 0.9249 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0002136/1.897, allocations: 179.7 kB / 0.9251 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/1.898, allocations: 188.3 kB / 0.9253 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/1.9, allocations: 0.7716 MB / 0.926 GB, free: 145.2 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005476/1.901, allocations: 0.856 MB / 0.9269 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008037/1.902, allocations: 192.8 kB / 0.9271 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002442/1.902, allocations: 148.2 kB / 0.9272 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.272e-06/1.902, allocations: 1.906 kB / 0.9272 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05218/1.954, allocations: 17.55 MB / 0.9443 GB, free: 144.1 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/1.954, allocations: 206.4 kB / 0.9445 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.632/4.586, allocations: 4 kB / 0.9445 GB, free: 143.8 MB / 0.5261 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