Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 196.4 kB / 8.539 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009285/0.0009285, allocations: 91.48 kB / 286.3 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09721/0.09817, allocations: 56.9 MB / 343.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.1861, allocations: 51.46 MB / 394.7 MB, free: 5.145 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2162/0.4023, allocations: 76.52 MB / 471.2 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001676/0.4025, allocations: 66.53 kB / 471.3 MB, free: 14.7 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.004402/0.4069, allocations: 1.885 MB / 473.2 MB, free: 13.49 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.407, allocations: 8 kB / 473.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.4071, allocations: 7.906 kB / 473.2 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.35e-05/0.4072, allocations: 173.6 kB / 473.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.4072, allocations: 8.781 kB / 473.4 MB, free: 13.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.4072, allocations: 4 kB / 473.4 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001147/0.4073, allocations: 48.83 kB / 473.4 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.4075, allocations: 70.3 kB / 473.5 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.4075, allocations: 0 / 473.5 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.4075, allocations: 0 / 473.5 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.4075, allocations: 4 kB / 473.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004691/0.408, allocations: 357.7 kB / 473.8 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.934e-05/0.4081, allocations: 57.91 kB / 473.9 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.932e-05/0.4081, allocations: 32.11 kB / 473.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.4082, allocations: 0 / 473.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.589e-05/0.4082, allocations: 34.56 kB / 474 MB, free: 12.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.4082, allocations: 0 / 474 MB, free: 12.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001614/0.4083, allocations: 60.03 kB / 474 MB, free: 12.7 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.708e-05/0.4084, allocations: 58.66 kB / 474.1 MB, free: 12.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.649e-05/0.4084, allocations: 103.8 kB / 474.2 MB, free: 12.53 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.625e-06/0.4084, allocations: 25.7 kB / 474.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.754e-05/0.4085, allocations: 98.67 kB / 474.3 MB, free: 12.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.4085, allocations: 27 kB / 474.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.4085, allocations: 0 / 474.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.342e-05/0.4086, allocations: 322.2 kB / 474.6 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.118e-05/0.4086, allocations: 17.69 kB / 474.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.15e-05/0.4086, allocations: 55.3 kB / 474.7 MB, free: 12 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.041e-05/0.4087, allocations: 24.55 kB / 474.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.4087, allocations: 0 / 474.7 MB, free: 11.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001165/0.4088, allocations: 91.94 kB / 474.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.607e-06/0.4088, allocations: 4 kB / 474.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.4088, allocations: 7.844 kB / 474.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.4088, allocations: 0.75 kB / 474.8 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.409, allocations: 23.47 kB / 474.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.409, allocations: 8.062 kB / 474.9 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.408e-05/0.409, allocations: 7.938 kB / 474.9 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.4091, allocations: 7.5 kB / 474.9 MB, free: 11.87 MB / 346.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 () * 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 3.997e-05/0.4091, allocations: 108.8 kB / 475 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.74e-05/0.4091, allocations: 7.906 kB / 475 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.203e-05/0.4092, allocations: 10.86 kB / 475 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.4092, allocations: 6.234 kB / 475 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4092, allocations: 0 / 475 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4092, allocations: 7.828 kB / 475 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.4093, allocations: 161.5 kB / 475.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.4093, allocations: 0 / 475.2 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.4094, allocations: 19.91 kB / 475.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4094, allocations: 0 / 475.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.225e-06/0.4095, allocations: 0 / 475.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.4095, allocations: 4.078 kB / 475.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4095, allocations: 0 / 475.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001341/0.4096, allocations: 186.8 kB / 475.4 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001629/0.4098, allocations: 0.5707 MB / 476 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.996e-05/0.4098, allocations: 92.23 kB / 476 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/0.4098, allocations: 0 / 476 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.617e-05/0.4099, allocations: 0 / 476 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.261e-05/0.4099, allocations: 11.17 kB / 476.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.838e-06/0.4099, allocations: 0 / 476.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.816e-05/0.41, allocations: 83.34 kB / 476.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007933/0.4108, allocations: 23.91 kB / 476.2 MB, free: 10.59 MB / 346.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 () * 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.0001065/0.4109, allocations: 99.19 kB / 476.3 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.411, allocations: 53.02 kB / 476.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.411, allocations: 0 / 476.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.659e-05/0.411, allocations: 23.88 kB / 476.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.4112, allocations: 3.75 kB / 476.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000405/0.4116, allocations: 231.7 kB / 476.6 MB, free: 10.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.4118, allocations: 0.7126 MB / 477.3 MB, free: 9.488 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4118, allocations: 0 / 477.3 MB, free: 9.488 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat