Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.0008317/0.0008319, allocations: 96.14 kB / 16.95 MB, free: 6.453 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.000841/0.000841, allocations: 185.6 kB / 17.84 MB, free: 6.004 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.392/1.392, 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.000496/0.0004964, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1094, allocations: 47.58 MB / 328.5 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.0066/0.1161, allocations: 4.385 MB / 332.8 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.1197, allocations: 1.236 MB / 334.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.1208, allocations: 11.94 kB / 334.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000614/0.1214, allocations: 99.22 kB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001214/0.1226, allocations: 281.7 kB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007082/0.1234, allocations: 167.7 kB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002017/0.1254, allocations: 1.043 MB / 335.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000628/0.126, allocations: 270.7 kB / 335.9 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.1271, allocations: 394.6 kB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.1283, allocations: 462.1 kB / 336.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003212/0.1286, allocations: 64 kB / 336.8 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004221/0.129, allocations: 68 kB / 336.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002675/0.1293, allocations: 183.3 kB / 337.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004958/0.1298, allocations: 205.2 kB / 337.3 MB, free: 11.1 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.131, allocations: 0.8686 MB / 338.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.688e-06/0.131, allocations: 0 / 338.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.131, allocations: 0 / 338.1 MB, free: 10.23 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.618e-05/0.1311, allocations: 0 / 338.1 MB, free: 10.23 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002837/0.1339, allocations: 1.212 MB / 339.4 MB, free: 8.945 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.134, allocations: 8.031 kB / 339.4 MB, free: 8.938 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003249/0.1343, allocations: 119.7 kB / 339.5 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003224/0.1346, allocations: 110.8 kB / 339.6 MB, free: 8.703 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.1359, allocations: 0.5746 MB / 340.2 MB, free: 8.086 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002975/0.1362, allocations: 174.4 kB / 340.3 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.1364, allocations: 64 kB / 340.4 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.138, allocations: 0.8822 MB / 341.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.138, allocations: 0 / 341.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-05/0.1381, allocations: 32 kB / 341.3 MB, free: 6.82 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.1381, allocations: 12 kB / 341.3 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.1398, allocations: 0.6727 MB / 342 MB, free: 6.133 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003776/0.1436, allocations: 2.104 MB / 344.1 MB, free: 3.922 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.145, allocations: 0.8897 MB / 345 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008123/0.1459, allocations: 434.4 kB / 345.4 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.952e-05/0.1459, allocations: 12.64 kB / 345.4 MB, free: 2.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/0.146, allocations: 51.2 kB / 345.5 MB, free: 2.477 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.385e-06/0.146, allocations: 3.938 kB / 345.5 MB, free: 2.473 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.005054/0.1511, allocations: 1.984 MB / 347.5 MB, free: 404 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003733/0.1515, allocations: 0.8234 MB / 348.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008345/0.1523, allocations: 0.6293 MB / 348.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.288e-05/0.1524, allocations: 45.7 kB / 349 MB, free: 14.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002757/0.1527, allocations: 348.9 kB / 349.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/0.1529, allocations: 248.2 kB / 349.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.979e-05/0.1529, allocations: 16 kB / 349.6 MB, free: 14.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.1531, allocations: 382.8 kB / 349.9 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006757/0.1538, allocations: 309.8 kB / 350.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009775/0.1548, allocations: 0.5741 MB / 350.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007747/0.1556, allocations: 432 kB / 351.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1556, allocations: 0 / 351.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002672/0.1583, allocations: 1.196 MB / 352.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.685e-05/0.1584, allocations: 85.11 kB / 352.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1584, allocations: 7.922 kB / 352.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006919/0.1591, allocations: 247.3 kB / 352.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006365/0.1597, allocations: 155.8 kB / 352.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007828/0.1676, allocations: 6.488 MB / 359.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009907/0.1686, allocations: 123.4 kB / 359.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.679e-05/0.1687, allocations: 24 kB / 359.5 MB, free: 3.363 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004348/0.1692, allocations: 221.7 kB / 359.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002113/0.1694, allocations: 91.02 kB / 359.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.1696, allocations: 91.33 kB / 359.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.1696, allocations: 8 kB / 359.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1696, allocations: 0 / 359.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002543/0.1722, allocations: 1.338 MB / 361.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004097/0.1763, allocations: 2.023 MB / 363.3 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1763, allocations: 3.938 kB / 363.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/0.177, allocations: 159.8 kB / 363.5 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005506/0.1776, allocations: 214.5 kB / 363.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.428e-05/0.1776, allocations: 19.98 kB / 363.7 MB, free: 15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006518/0.1842, allocations: 5.055 MB / 368.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.1842, allocations: 0 / 368.7 MB, free: 9.547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003429/0.1876, allocations: 1.527 MB / 370.3 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004768/0.1881, allocations: 236 kB / 370.5 MB, free: 7.742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002007/0.1883, allocations: 20 kB / 370.5 MB, free: 7.723 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006994/0.189, allocations: 71.8 kB / 370.6 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001675/0.1892, allocations: 68.5 kB / 370.7 MB, free: 7.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.893e-05/0.1893, allocations: 16.12 kB / 370.7 MB, free: 7.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006197/0.1899, allocations: 455 kB / 371.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.1899, allocations: 0 / 371.1 MB, free: 7.133 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001015/0.1909, allocations: 283.7 kB / 371.4 MB, free: 6.855 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003752/0.1947, allocations: 2.099 MB / 373.5 MB, free: 4.715 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002517/0.1972, allocations: 1.403 MB / 374.9 MB, free: 3.227 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.1972, allocations: 4 kB / 374.9 MB, free: 3.223 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001443/0.1987, allocations: 0.8159 MB / 375.7 MB, free: 2.367 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.1999, allocations: 222.8 kB / 375.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1885/0.3884, allocations: 5.391 MB / 381.3 MB, free: 51.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005237/0.389, allocations: 0.9419 MB / 382.3 MB, free: 50.82 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005875/0.3896, allocations: 103.2 kB / 382.4 MB, free: 50.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004258/0.3901, allocations: 294 kB / 382.7 MB, free: 50.8 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3901, allocations: 0 / 382.7 MB, free: 50.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1182/0.5083, allocations: 23.2 MB / 405.9 MB, free: 36.49 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001551/0.5085, allocations: 221.3 kB / 406.1 MB, free: 36.24 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.727/3.236, allocations: 0 / 406.1 MB, free: 36.24 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat