Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder,fileNamePrefix="Modelica_3_2_3_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.001037/0.001037, allocations: 96.45 kB / 16.95 MB, free: 6.891 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.001289/0.001289, allocations: 184.9 kB / 17.84 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.558/1.558, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004996/0.0004997, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 47.56 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder): time 0.00372/0.1122, allocations: 2.555 MB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.1142, allocations: 1.054 MB / 332 MB, free: 368 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001692/0.1143, allocations: 7.938 kB / 332.1 MB, free: 360 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004623/0.1148, allocations: 143.4 kB / 332.2 MB, free: 216 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004056/0.1152, allocations: 159.1 kB / 332.4 MB, free: 56 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003643/0.1156, allocations: 111.8 kB / 332.5 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004556/0.1161, allocations: 390.1 kB / 332.8 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.1163, allocations: 89.58 kB / 332.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.1165, allocations: 151.4 kB / 333.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002303/0.1167, allocations: 179.2 kB / 333.3 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.1168, allocations: 20 kB / 333.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001666/0.117, allocations: 51.98 kB / 333.3 MB, free: 15.08 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001039/0.1171, allocations: 67.69 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.627e-05/0.1172, allocations: 89.52 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.1175, allocations: 331.4 kB / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.1175, allocations: 4 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1176, allocations: 3.938 kB / 333.8 MB, free: 14.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.383e-06/0.1176, allocations: 0 / 333.8 MB, free: 14.59 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.001012/0.1186, allocations: 0.636 MB / 334.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.1186, allocations: 8.031 kB / 334.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.1188, allocations: 71 kB / 334.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.209e-05/0.1189, allocations: 43.48 kB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.1193, allocations: 319.4 kB / 334.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.787e-05/0.1194, allocations: 20.5 kB / 334.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.1194, allocations: 28 kB / 334.9 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005234/0.1199, allocations: 303.1 kB / 335.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.12, allocations: 0 / 335.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.12, allocations: 16 kB / 335.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.1201, allocations: 12 kB / 335.2 MB, free: 13.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003486/0.1204, allocations: 182.1 kB / 335.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.1218, allocations: 0.8677 MB / 336.3 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.1225, allocations: 267.4 kB / 336.6 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.1227, allocations: 93.39 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.504e-05/0.1227, allocations: 4.281 kB / 336.6 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004022/0.1231, allocations: 160.9 kB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=34): time 4.158e-06/0.1231, allocations: 3.984 kB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=40): time 0.002552/0.1257, allocations: 1.324 MB / 338.1 MB, free: 9.941 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/0.1259, allocations: 183.9 kB / 338.3 MB, free: 9.719 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003877/0.1263, allocations: 360.4 kB / 338.7 MB, free: 9.355 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.1263, allocations: 33.7 kB / 338.7 MB, free: 9.316 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.1265, allocations: 192.5 kB / 338.9 MB, free: 9.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.1266, allocations: 142 kB / 339 MB, free: 8.984 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.732e-05/0.1266, allocations: 8 kB / 339 MB, free: 8.977 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1268, allocations: 350.8 kB / 339.4 MB, free: 8.625 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.127, allocations: 88.78 kB / 339.5 MB, free: 8.539 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.1273, allocations: 185.3 kB / 339.6 MB, free: 8.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.1275, allocations: 109.8 kB / 339.8 MB, free: 8.215 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.1275, allocations: 4 kB / 339.8 MB, free: 8.211 MB / 286.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000593/0.1281, allocations: 346.7 kB / 340.1 MB, free: 7.863 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.1282, allocations: 4 kB / 340.1 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1282, allocations: 7.938 kB / 340.1 MB, free: 7.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000104/0.1283, allocations: 16.86 kB / 340.1 MB, free: 7.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000321/0.1286, allocations: 91.89 kB / 340.2 MB, free: 7.742 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/0.1299, allocations: 1.288 MB / 341.5 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000176/0.13, allocations: 20.14 kB / 341.5 MB, free: 6.305 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.923e-05/0.1301, allocations: 16 kB / 341.5 MB, free: 6.289 MB / 286.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.0002955/0.1304, allocations: 173.7 kB / 341.7 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.943e-05/0.1305, allocations: 39.53 kB / 341.7 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.1306, allocations: 39.95 kB / 341.8 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.1306, allocations: 4 kB / 341.8 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1306, allocations: 0 / 341.8 MB, free: 6.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008794/0.1315, allocations: 0.6609 MB / 342.4 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/0.133, allocations: 0.8485 MB / 343.3 MB, free: 4.336 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.133, allocations: 4.062 kB / 343.3 MB, free: 4.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/0.1333, allocations: 79.89 kB / 343.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-05/0.1333, allocations: 8.078 kB / 343.4 MB, free: 4.246 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.183e-05/0.1333, allocations: 12 kB / 343.4 MB, free: 4.234 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.1334, allocations: 4 kB / 343.4 MB, free: 4.23 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.1334, allocations: 3.938 kB / 343.4 MB, free: 4.227 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008527/0.1342, allocations: 0.5341 MB / 343.9 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.1344, allocations: 140.7 kB / 344.1 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.838e-05/0.1345, allocations: 11.95 kB / 344.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.1347, allocations: 19.98 kB / 344.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.1348, allocations: 27.91 kB / 344.1 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.43e-05/0.1349, allocations: 15.98 kB / 344.1 MB, free: 3.434 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003227/0.1352, allocations: 251 kB / 344.4 MB, free: 3.191 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1352, allocations: 4 kB / 344.4 MB, free: 3.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004587/0.1357, allocations: 104.6 kB / 344.5 MB, free: 3.086 MB / 286.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.002059/0.1377, allocations: 1.408 MB / 345.9 MB, free: 1.656 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007492/0.1385, allocations: 370 kB / 346.3 MB, free: 1.281 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1385, allocations: 0 / 346.3 MB, free: 1.281 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.1388, allocations: 128.3 kB / 346.4 MB, free: 1.156 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.1395, allocations: 89.38 kB / 346.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.1436, allocations: 2.541 MB / 349 MB, free: 14.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.144, allocations: 0.8041 MB / 349.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002071/0.1443, allocations: 43.27 kB / 349.9 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/0.1445, allocations: 131.4 kB / 350 MB, free: 13.45 MB / 302.1 MB Notification: Performance of SimCode: time 1.453e-06/0.1445, allocations: 4 kB / 350 MB, free: 13.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.1695, allocations: 8.475 MB / 358.5 MB, free: 4.953 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002221/0.1698, allocations: 250.5 kB / 358.7 MB, free: 4.617 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.301, allocations: 0 / 358.7 MB, free: 4.617 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TestCylinder.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TestCylinder_res.mat does not exist to compare? outputFormat=mat