Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.conf.json 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/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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009742/0.0009742, allocations: 86.86 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 183.5 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 223.3 MB / 241.2 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000277/0.0002773, allocations: 8.188 kB / 300.9 MB, free: 6.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 50.42 MB / 351.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.003371/0.118, allocations: 2.561 MB / 353.9 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.1199, allocations: 1.115 MB / 355 MB, free: 8.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002405/0.1201, allocations: 7.938 kB / 355 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004593/0.1206, allocations: 119.5 kB / 355.1 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000406/0.121, allocations: 143.2 kB / 355.3 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004343/0.1215, allocations: 147.6 kB / 355.4 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.1219, allocations: 390 kB / 355.8 MB, free: 7.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.1221, allocations: 89.58 kB / 355.9 MB, free: 7.117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1224, allocations: 147.4 kB / 356 MB, free: 6.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002411/0.1226, allocations: 163.3 kB / 356.2 MB, free: 6.812 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.534e-05/0.1227, allocations: 20 kB / 356.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001203/0.1228, allocations: 47.92 kB / 356.3 MB, free: 6.746 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.523e-05/0.1229, allocations: 63.75 kB / 356.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.227e-05/0.123, allocations: 89.52 kB / 356.4 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003341/0.1233, allocations: 315.2 kB / 356.7 MB, free: 6.281 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.914e-06/0.1233, allocations: 0 / 356.7 MB, free: 6.281 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1233, allocations: 0 / 356.7 MB, free: 6.281 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1234, allocations: 0 / 356.7 MB, free: 6.281 MB / 286.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.0009621/0.1243, allocations: 0.6233 MB / 357.3 MB, free: 5.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1244, allocations: 8.031 kB / 357.3 MB, free: 5.605 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.1245, allocations: 75 kB / 357.4 MB, free: 5.523 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.487e-05/0.1246, allocations: 43.53 kB / 357.5 MB, free: 5.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003939/0.125, allocations: 306.7 kB / 357.8 MB, free: 5.145 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.125, allocations: 20.56 kB / 357.8 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.396e-05/0.1251, allocations: 31.92 kB / 357.8 MB, free: 5.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.1256, allocations: 303.1 kB / 358.1 MB, free: 4.773 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.1256, allocations: 7.906 kB / 358.1 MB, free: 4.766 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.119e-05/0.1257, allocations: 19.95 kB / 358.1 MB, free: 4.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.1257, allocations: 8 kB / 358.1 MB, free: 4.738 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.126, allocations: 178.1 kB / 358.3 MB, free: 4.566 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.1273, allocations: 0.8678 MB / 359.2 MB, free: 3.633 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005287/0.1278, allocations: 264 kB / 359.4 MB, free: 3.367 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.128, allocations: 93.39 kB / 359.5 MB, free: 3.273 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.248e-05/0.1281, allocations: 4.281 kB / 359.5 MB, free: 3.27 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003246/0.1284, allocations: 165.7 kB / 359.7 MB, free: 3.098 MB / 286.1 MB Notification: Performance of pre-optimization done (n=34): time 1.913e-06/0.1284, allocations: 4 kB / 359.7 MB, free: 3.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002255/0.1307, allocations: 1.316 MB / 361 MB, free: 1.668 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.645e-05/0.1308, allocations: 187.9 kB / 361.2 MB, free: 1.441 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003264/0.1311, allocations: 320.6 kB / 361.5 MB, free: 1.113 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.1311, allocations: 37.69 kB / 361.6 MB, free: 1.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.1313, allocations: 188.5 kB / 361.7 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1314, allocations: 142 kB / 361.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/0.1314, allocations: 4 kB / 361.9 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1316, allocations: 346.8 kB / 362.2 MB, free: 400 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.1317, allocations: 88.84 kB / 362.3 MB, free: 308 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.132, allocations: 177.3 kB / 362.5 MB, free: 100 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.1322, allocations: 121.6 kB / 362.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1322, allocations: 3.938 kB / 362.6 MB, free: 15.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005361/0.1327, allocations: 342.8 kB / 362.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1328, allocations: 8 kB / 362.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.1328, allocations: 3.984 kB / 362.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.244e-05/0.1329, allocations: 16.86 kB / 363 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003278/0.1332, allocations: 95.97 kB / 363.1 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.1344, allocations: 1.288 MB / 364.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.1346, allocations: 24.03 kB / 364.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.1346, allocations: 12 kB / 364.4 MB, free: 14.05 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.0001902/0.1348, allocations: 171.9 kB / 364.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.857e-05/0.1348, allocations: 35.62 kB / 364.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.832e-05/0.1349, allocations: 47.88 kB / 364.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1349, allocations: 7.953 kB / 364.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.135, allocations: 3.938 kB / 364.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006304/0.1356, allocations: 0.6492 MB / 365.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.1367, allocations: 0.8446 MB / 366.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.1367, allocations: 4 kB / 366.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002976/0.137, allocations: 83.91 kB / 366.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.1371, allocations: 0 / 366.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.494e-05/0.1371, allocations: 15.98 kB / 366.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.1371, allocations: 4 kB / 366.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1371, allocations: 0 / 366.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007632/0.1379, allocations: 0.546 MB / 366.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.138, allocations: 136.7 kB / 366.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.47e-05/0.1381, allocations: 12 kB / 366.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.1383, allocations: 19.91 kB / 366.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.333e-05/0.1383, allocations: 27.95 kB / 367 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.1384, allocations: 8 kB / 367 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.1386, allocations: 239.1 kB / 367.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1386, allocations: 0 / 367.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003938/0.139, allocations: 95.98 kB / 367.3 MB, free: 10.89 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.001845/0.1409, allocations: 1.406 MB / 368.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006151/0.1415, allocations: 362.3 kB / 369.1 MB, free: 9.234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1415, allocations: 4 kB / 369.1 MB, free: 9.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.1418, allocations: 136 kB / 369.2 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/0.1423, allocations: 88.97 kB / 369.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003409/0.1457, allocations: 2.472 MB / 371.8 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/0.1462, allocations: 0.808 MB / 372.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.1463, allocations: 39.27 kB / 372.6 MB, free: 5.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.1465, allocations: 135.4 kB / 372.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1465, allocations: 0 / 372.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.1691, allocations: 8.356 MB / 381.1 MB, free: 13.35 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/0.1693, allocations: 257.7 kB / 381.4 MB, free: 13.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.189/2.359, allocations: 64 / 381.4 MB, free: 13.01 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat does not exist to compare? outputFormat=mat