Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.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) 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(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009167/0.0009167, allocations: 95.77 kB / 17 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009061/0.0009062, allocations: 194.7 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002295/0.0002296, allocations: 4 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1032, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.003154/0.1064, allocations: 2.576 MB / 360.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.1086, allocations: 1.275 MB / 362.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.1088, allocations: 7.938 kB / 362.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004068/0.1092, allocations: 119.5 kB / 362.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004404/0.1097, allocations: 187 kB / 362.5 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004828/0.1101, allocations: 127.8 kB / 362.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.1106, allocations: 405.6 kB / 363 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.1107, allocations: 93.86 kB / 363.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.1109, allocations: 151.3 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.1111, allocations: 167.2 kB / 363.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.1112, allocations: 20 kB / 363.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.1113, allocations: 43.98 kB / 363.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.418e-05/0.1114, allocations: 67.75 kB / 363.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.228e-05/0.1115, allocations: 97.45 kB / 363.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.1118, allocations: 327.3 kB / 363.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1118, allocations: 0 / 363.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1118, allocations: 0 / 363.9 MB, free: 8.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1118, allocations: 4 kB / 363.9 MB, free: 8.09 MB / 302.1 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.0009648/0.1128, allocations: 0.6128 MB / 364.5 MB, free: 7.426 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.1129, allocations: 8.031 kB / 364.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.113, allocations: 75 kB / 364.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.1131, allocations: 51.44 kB / 364.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.1135, allocations: 307.4 kB / 365 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.1135, allocations: 24.52 kB / 365 MB, free: 6.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.1135, allocations: 24 kB / 365 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005084/0.1141, allocations: 307.1 kB / 365.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1141, allocations: 0 / 365.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.118e-05/0.1141, allocations: 16 kB / 365.3 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.1141, allocations: 4 kB / 365.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003888/0.1145, allocations: 182.1 kB / 365.5 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001255/0.1158, allocations: 0.8755 MB / 366.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004915/0.1163, allocations: 262.7 kB / 366.7 MB, free: 5.168 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.1166, allocations: 97.38 kB / 366.7 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.1166, allocations: 4.281 kB / 366.8 MB, free: 5.066 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003091/0.1169, allocations: 166.6 kB / 366.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=34): time 1.844e-06/0.1169, allocations: 3.938 kB / 366.9 MB, free: 4.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002302/0.1192, allocations: 1.312 MB / 368.2 MB, free: 3.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1194, allocations: 187.9 kB / 368.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003509/0.1197, allocations: 332.5 kB / 368.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.1198, allocations: 33.7 kB / 368.8 MB, free: 2.871 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.1199, allocations: 196.4 kB / 369 MB, free: 2.672 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.12, allocations: 138 kB / 369.1 MB, free: 2.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.634e-05/0.12, allocations: 12 kB / 369.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1202, allocations: 346.8 kB / 369.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.1204, allocations: 84.84 kB / 369.5 MB, free: 2.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.1206, allocations: 181.2 kB / 369.7 MB, free: 1.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002687/0.1209, allocations: 117.6 kB / 369.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.1209, allocations: 0 / 369.8 MB, free: 1.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005723/0.1215, allocations: 350.9 kB / 370.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.1215, allocations: 6.5 kB / 370.2 MB, free: 1.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.1216, allocations: 4 kB / 370.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.667e-05/0.1217, allocations: 16.86 kB / 370.2 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003251/0.122, allocations: 96.02 kB / 370.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1789/0.3009, allocations: 1.276 MB / 371.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003175/0.3012, allocations: 14.33 kB / 371.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.3013, allocations: 15.38 kB / 371.6 MB, free: 18.62 MB / 302.1 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.0002273/0.3015, allocations: 171.7 kB / 371.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-05/0.3016, allocations: 44.69 kB / 371.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.3017, allocations: 45.44 kB / 371.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3017, allocations: 3.875 kB / 371.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3017, allocations: 1.031 kB / 371.8 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007075/0.3024, allocations: 0.6533 MB / 372.5 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.3036, allocations: 0.8475 MB / 373.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.611e-06/0.3036, allocations: 2.062 kB / 373.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/0.3039, allocations: 75.64 kB / 373.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3039, allocations: 4.375 kB / 373.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.304, allocations: 11.02 kB / 373.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.304, allocations: 6.828 kB / 373.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.304, allocations: 3.438 kB / 373.5 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008364/0.3048, allocations: 0.543 MB / 374 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.305, allocations: 137.3 kB / 374.1 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/0.305, allocations: 18.66 kB / 374.1 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.3053, allocations: 18.09 kB / 374.2 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.737e-05/0.3053, allocations: 24.67 kB / 374.2 MB, free: 17.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.3054, allocations: 16.31 kB / 374.2 MB, free: 17.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.3057, allocations: 241.2 kB / 374.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3057, allocations: 0 / 374.4 MB, free: 17.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004654/0.3062, allocations: 94.98 kB / 374.5 MB, free: 17.29 MB / 302.1 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.001898/0.3081, allocations: 1.413 MB / 375.9 MB, free: 16.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000715/0.3088, allocations: 368.3 kB / 376.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3088, allocations: 1.125 kB / 376.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003544/0.3092, allocations: 129 kB / 376.4 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006138/0.3098, allocations: 101.4 kB / 376.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.3132, allocations: 2.508 MB / 379 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.3136, allocations: 0.8085 MB / 379.8 MB, free: 14.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001987/0.3138, allocations: 47.97 kB / 379.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.314, allocations: 132.1 kB / 380 MB, free: 14.26 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.314, allocations: 0 / 380 MB, free: 14.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02403/0.338, allocations: 8.444 MB / 388.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000176/0.3382, allocations: 265.2 kB / 388.7 MB, free: 11.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.096/2.435, allocations: 0 / 388.7 MB, free: 11.81 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat does not exist to compare? outputFormat=mat