Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.001481/0.001481, allocations: 186.2 kB / 16.41 MB, free: 5.723 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/2, 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.001163/0.001162, allocations: 92.42 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004259/0.0004259, allocations: 15.98 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3425, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.4789, allocations: 82.39 MB / 457 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003167/0.4793, allocations: 79.95 kB / 457.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07114/0.5504, allocations: 16.46 MB / 473.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5505, allocations: 0 / 473.6 MB, free: 13.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.483e-05/0.5506, allocations: 20 kB / 473.6 MB, free: 13.66 MB / 362.7 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.00357/0.5542, allocations: 1.2 MB / 474.8 MB, free: 12.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.5542, allocations: 12.03 kB / 474.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003504/0.5546, allocations: 123.7 kB / 474.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002898/0.5549, allocations: 106.8 kB / 475 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.5564, allocations: 0.5361 MB / 475.5 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003514/0.5567, allocations: 158.3 kB / 475.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.5569, allocations: 60 kB / 475.8 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/0.5594, allocations: 0.8713 MB / 476.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.452e-05/0.5595, allocations: 3.938 kB / 476.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.5596, allocations: 32 kB / 476.7 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.294e-05/0.5596, allocations: 12 kB / 476.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002689/0.5623, allocations: 0.6648 MB / 477.3 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006072/0.5684, allocations: 2.127 MB / 479.5 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/0.5715, allocations: 1.067 MB / 480.5 MB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.5716, allocations: 8.656 kB / 480.5 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.287e-05/0.5717, allocations: 47.22 kB / 480.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 4.128e-06/0.5717, allocations: 0 / 480.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.01005/0.5817, allocations: 2.018 MB / 482.6 MB, free: 4.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004736/0.5822, allocations: 0.8234 MB / 483.4 MB, free: 3.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.5835, allocations: 0.5509 MB / 484 MB, free: 2.531 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002038/0.5837, allocations: 45.7 kB / 484 MB, free: 2.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003682/0.5841, allocations: 355.4 kB / 484.4 MB, free: 2.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003554/0.5844, allocations: 260.2 kB / 484.6 MB, free: 1.871 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.72e-05/0.5845, allocations: 16 kB / 484.6 MB, free: 1.855 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.5847, allocations: 334.8 kB / 485 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.586, allocations: 293.8 kB / 485.3 MB, free: 1.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.5876, allocations: 0.5702 MB / 485.8 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.5891, allocations: 428.8 kB / 486.2 MB, free: 132 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.5892, allocations: 0 / 486.2 MB, free: 132 kB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.004877/0.5941, allocations: 1.13 MB / 487.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.62e-05/0.5942, allocations: 89.09 kB / 487.5 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.5942, allocations: 0 / 487.5 MB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.5954, allocations: 255.2 kB / 487.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001316/0.5968, allocations: 143.8 kB / 487.9 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/0.6094, allocations: 6.579 MB / 494.4 MB, free: 7.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.6108, allocations: 115.4 kB / 494.5 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001046/0.611, allocations: 32 kB / 494.6 MB, free: 7.191 MB / 378.7 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 (70): * Single equations (assignments): 63 * 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.0005999/0.6116, allocations: 225.6 kB / 494.8 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003093/0.6119, allocations: 91.05 kB / 494.9 MB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002718/0.6122, allocations: 92.06 kB / 495 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.6122, allocations: 4 kB / 495 MB, free: 6.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.6122, allocations: 8 kB / 495 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004605/0.6168, allocations: 1.331 MB / 496.3 MB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007182/0.6241, allocations: 2.031 MB / 498.3 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.6241, allocations: 0 / 498.3 MB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/0.6256, allocations: 151.8 kB / 498.5 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.6266, allocations: 218.5 kB / 498.7 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001182/0.6267, allocations: 12 kB / 498.7 MB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2836/0.9104, allocations: 5.114 MB / 0.492 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.9104, allocations: 0 / 0.492 GB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006311/0.9168, allocations: 1.516 MB / 0.4935 GB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006018/0.9174, allocations: 240.9 kB / 0.4937 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001842/0.9176, allocations: 18.06 kB / 0.4938 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009547/0.9186, allocations: 64 kB / 0.4938 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002631/0.9188, allocations: 65.05 kB / 0.4939 GB, free: 102.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-05/0.9189, allocations: 17.12 kB / 0.4939 GB, free: 102.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000836/0.9198, allocations: 456.9 kB / 0.4943 GB, free: 102.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.9198, allocations: 0 / 0.4943 GB, free: 102.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001315/0.9211, allocations: 288.6 kB / 0.4946 GB, free: 102.4 MB / 378.7 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 (62): * Single equations (assignments): 59 * 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.006323/0.9275, allocations: 2.105 MB / 0.4967 GB, free: 101.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003546/0.9311, allocations: 1.398 MB / 0.498 GB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/0.9311, allocations: 1.344 kB / 0.498 GB, free: 101 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002489/0.9336, allocations: 0.8097 MB / 0.4988 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/0.9353, allocations: 214.6 kB / 0.499 GB, free: 100.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005528/0.9408, allocations: 2.756 MB / 0.5017 GB, free: 99.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.9414, allocations: 0.962 MB / 0.5027 GB, free: 98.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007311/0.9422, allocations: 298.5 kB / 0.5029 GB, free: 98.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.463e-06/0.9422, allocations: 5.031 kB / 0.5029 GB, free: 98.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.088/4.031, allocations: 24.46 MB / 0.5268 GB, free: 84.08 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat