Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001602/0.001602, allocations: 183.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.091/2.091, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 112.2 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004033/0.0004036, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3358, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.003769/0.3397, allocations: 2.427 MB / 377.1 MB, free: 43.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002506/0.3422, allocations: 1.062 MB / 378.1 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004324/0.3427, allocations: 4.219 kB / 378.1 MB, free: 42.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006111/0.3434, allocations: 138.2 kB / 378.3 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007612/0.3441, allocations: 189.2 kB / 378.4 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005906/0.3448, allocations: 112.6 kB / 378.5 MB, free: 42.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000736/0.3455, allocations: 304 kB / 378.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002478/0.3458, allocations: 85 kB / 378.9 MB, free: 42.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002792/0.3461, allocations: 151.1 kB / 379.1 MB, free: 42.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.3464, allocations: 165.8 kB / 379.2 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.698e-05/0.3464, allocations: 17.22 kB / 379.3 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.3467, allocations: 37.44 kB / 379.3 MB, free: 41.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.3468, allocations: 68.52 kB / 379.4 MB, free: 41.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.3469, allocations: 94.36 kB / 379.4 MB, free: 41.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004911/0.3474, allocations: 331.6 kB / 379.8 MB, free: 41.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.3474, allocations: 0 / 379.8 MB, free: 41.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3474, allocations: 0 / 379.8 MB, free: 41.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3475, allocations: 1.5 kB / 379.8 MB, free: 41.62 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001197/0.3487, allocations: 0.6195 MB / 380.4 MB, free: 41.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.3487, allocations: 9.625 kB / 380.4 MB, free: 41.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001246/0.3489, allocations: 69.62 kB / 380.5 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.349, allocations: 50.98 kB / 380.5 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004708/0.3495, allocations: 304.1 kB / 380.8 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.3495, allocations: 19.22 kB / 380.8 MB, free: 40.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.042e-05/0.3496, allocations: 30.47 kB / 380.9 MB, free: 40.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.3503, allocations: 306.1 kB / 381.2 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.3503, allocations: 1.312 kB / 381.2 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.69e-05/0.3504, allocations: 15.72 kB / 381.2 MB, free: 40.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.3504, allocations: 9.984 kB / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005734/0.351, allocations: 179.6 kB / 381.4 MB, free: 40.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.353, allocations: 0.8709 MB / 382.2 MB, free: 39.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008017/0.3538, allocations: 267.3 kB / 382.5 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.449e-05/0.3539, allocations: 3.875 kB / 382.5 MB, free: 39.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004442/0.3544, allocations: 159.8 kB / 382.7 MB, free: 39.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 4.218e-06/0.3544, allocations: 0 / 382.7 MB, free: 39.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003402/0.3578, allocations: 1.313 MB / 384 MB, free: 38.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.808e-05/0.3579, allocations: 189 kB / 384.2 MB, free: 38.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/0.3584, allocations: 343.3 kB / 384.5 MB, free: 37.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.3585, allocations: 36.64 kB / 384.5 MB, free: 37.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.3586, allocations: 237.9 kB / 384.8 MB, free: 37.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.3588, allocations: 134.4 kB / 384.9 MB, free: 37.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.3588, allocations: 10.72 kB / 384.9 MB, free: 37.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.269e-05/0.3589, allocations: 337.5 kB / 385.2 MB, free: 37.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.3592, allocations: 82.84 kB / 385.3 MB, free: 37.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003492/0.3596, allocations: 175.5 kB / 385.5 MB, free: 37.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.3599, allocations: 113.9 kB / 385.6 MB, free: 37 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3599, allocations: 0 / 385.6 MB, free: 37 MB / 298.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009018/0.3608, allocations: 329.8 kB / 385.9 MB, free: 36.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.814e-05/0.3609, allocations: 5.125 kB / 385.9 MB, free: 36.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.3609, allocations: 1.188 kB / 385.9 MB, free: 36.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.3611, allocations: 23.39 kB / 385.9 MB, free: 36.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006296/0.3617, allocations: 90.61 kB / 386 MB, free: 36.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001217/0.3629, allocations: 1.295 MB / 387.3 MB, free: 35.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004598/0.3635, allocations: 18.22 kB / 387.3 MB, free: 35.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.952e-05/0.3635, allocations: 14.77 kB / 387.4 MB, free: 35.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 48 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000285/0.3638, allocations: 167.5 kB / 387.5 MB, free: 35.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.922e-05/0.3639, allocations: 35.91 kB / 387.6 MB, free: 35.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.364, allocations: 46.52 kB / 387.6 MB, free: 35.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.3641, allocations: 8.188 kB / 387.6 MB, free: 35.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3641, allocations: 3.938 kB / 387.6 MB, free: 35.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007977/0.3649, allocations: 0.6575 MB / 388.3 MB, free: 34.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.3665, allocations: 0.864 MB / 389.1 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.3666, allocations: 0 / 389.1 MB, free: 33.55 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006087/0.3672, allocations: 79.83 kB / 389.2 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.176e-05/0.3672, allocations: 4 kB / 389.2 MB, free: 33.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.548e-05/0.3673, allocations: 19.89 kB / 389.2 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.3673, allocations: 4 kB / 389.2 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3673, allocations: 0 / 389.2 MB, free: 33.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.3684, allocations: 0.58 MB / 389.8 MB, free: 32.81 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.3686, allocations: 144.6 kB / 390 MB, free: 32.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.246e-05/0.3687, allocations: 12 kB / 390 MB, free: 32.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003889/0.3691, allocations: 19.92 kB / 390 MB, free: 32.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.3692, allocations: 27.92 kB / 390 MB, free: 32.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.126e-05/0.3692, allocations: 16 kB / 390 MB, free: 32.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003175/0.3696, allocations: 243 kB / 390.3 MB, free: 32.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3696, allocations: 0 / 390.3 MB, free: 32.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005694/0.3702, allocations: 95.98 kB / 390.4 MB, free: 32.25 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (cylinder1.m,cylinder1.H,cylinder2.H,springDamper.s_rel,springDamper.v_rel) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002411/0.3726, allocations: 1.722 MB / 392.1 MB, free: 30.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009207/0.3736, allocations: 370.1 kB / 392.5 MB, free: 30.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/0.3736, allocations: 3.938 kB / 392.5 MB, free: 30.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003153/0.3739, allocations: 136.2 kB / 392.6 MB, free: 30 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007647/0.3747, allocations: 79.78 kB / 392.7 MB, free: 29.92 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.3796, allocations: 3.118 MB / 395.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.38, allocations: 0.8158 MB / 396.6 MB, free: 25.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.3803, allocations: 131.4 kB / 396.7 MB, free: 25.74 MB / 298.7 MB Notification: Performance of SimCode: time 1.192e-06/0.3803, allocations: 0 / 396.7 MB, free: 25.74 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.232/3.612, allocations: 7.306 MB / 404 MB, free: 18.43 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat does not exist to compare? outputFormat=mat