Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001109/0.001108, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 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.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008814/0.0008816, allocations: 95.47 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003538, allocations: 11.92 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.2959, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3972, allocations: 76.49 MB / 478.1 MB, free: 3.988 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.3975, allocations: 71.97 kB / 478.1 MB, free: 3.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005072/0.4026, allocations: 1.782 MB / 479.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.673e-06/0.4027, allocations: 0 / 479.9 MB, free: 2.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.497e-05/0.4027, allocations: 0 / 479.9 MB, free: 2.145 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004768/0.4032, allocations: 375.1 kB / 480.3 MB, free: 1.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.4033, allocations: 8.031 kB / 480.3 MB, free: 1.723 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.739e-05/0.4033, allocations: 46.55 kB / 480.3 MB, free: 1.668 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.4035, allocations: 11.91 kB / 480.3 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.4036, allocations: 170.9 kB / 480.5 MB, free: 1.449 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.4036, allocations: 4 kB / 480.5 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.4037, allocations: 12 kB / 480.5 MB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.4039, allocations: 84.55 kB / 480.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.4039, allocations: 0 / 480.6 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.4039, allocations: 7.938 kB / 480.6 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.4039, allocations: 8 kB / 480.6 MB, free: 1.332 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001152/0.404, allocations: 51.91 kB / 480.7 MB, free: 1.281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.4047, allocations: 400.6 kB / 481.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.4048, allocations: 74.52 kB / 481.1 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.4048, allocations: 4 kB / 481.1 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.783e-05/0.4049, allocations: 30.56 kB / 481.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 3.978e-06/0.4049, allocations: 0 / 481.2 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002651/0.4052, allocations: 89.67 kB / 481.3 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.4053, allocations: 63.33 kB / 481.3 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.342e-05/0.4053, allocations: 93 kB / 481.4 MB, free: 460 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.4054, allocations: 33.7 kB / 481.5 MB, free: 420 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.852e-05/0.4054, allocations: 103.9 kB / 481.6 MB, free: 312 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.153e-05/0.4055, allocations: 31.55 kB / 481.6 MB, free: 280 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.197e-06/0.4055, allocations: 0 / 481.6 MB, free: 280 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4056, allocations: 318.8 kB / 481.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.4057, allocations: 19.98 kB / 481.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.485e-05/0.4057, allocations: 42.56 kB / 482 MB, free: 15.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.49e-05/0.4058, allocations: 32 kB / 482 MB, free: 15.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4058, allocations: 0 / 482 MB, free: 15.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001587/0.406, allocations: 105.5 kB / 482.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.406, allocations: 7.938 kB / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.406, allocations: 0 / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.406, allocations: 0 / 482.1 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.4061, allocations: 28.17 kB / 482.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.4061, allocations: 4 kB / 482.1 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.253e-05/0.4062, allocations: 20 kB / 482.1 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-06/0.4062, allocations: 4 kB / 482.2 MB, free: 15.68 MB / 362.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 (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.529e-05/0.4063, allocations: 117.8 kB / 482.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.4064, allocations: 11.86 kB / 482.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.4064, allocations: 12.38 kB / 482.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.4064, allocations: 0 / 482.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4064, allocations: 3.938 kB / 482.3 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4064, allocations: 3.984 kB / 482.3 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.4066, allocations: 181.6 kB / 482.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.4066, allocations: 4 kB / 482.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.4067, allocations: 19.98 kB / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4067, allocations: 0 / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.4068, allocations: 7.953 kB / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.4068, allocations: 0 / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.4068, allocations: 0 / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.4071, allocations: 199.7 kB / 482.7 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.743e-05/0.4072, allocations: 81.02 kB / 482.8 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.4072, allocations: 12.03 kB / 482.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.595e-05/0.4073, allocations: 11.89 kB / 482.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.444e-05/0.4073, allocations: 4 kB / 482.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-06/0.4073, allocations: 0 / 482.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.474e-05/0.4074, allocations: 83.27 kB / 482.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4074, allocations: 0 / 482.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002305/0.4076, allocations: 24 kB / 482.9 MB, free: 14.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mass1.T,mass2.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 (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004771/0.4081, allocations: 0.7242 MB / 483.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001284/0.4083, allocations: 59.97 kB / 483.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/0.4083, allocations: 4 kB / 483.7 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.305e-05/0.4083, allocations: 31.84 kB / 483.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001999/0.4085, allocations: 7.953 kB / 483.7 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001062/0.4096, allocations: 0.9 MB / 484.6 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002781/0.4099, allocations: 0.6926 MB / 485.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.741e-05/0.4099, allocations: 7.984 kB / 485.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.735e-05/0.41, allocations: 23.44 kB / 485.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.41, allocations: 0 / 485.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01392/0.4239, allocations: 1.513 MB / 486.9 MB, free: 10.88 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.4242, allocations: 186.5 kB / 487.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/1.989, allocations: 0 / 487.1 MB, free: 10.64 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat