Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.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.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.TwoMasses,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.000991/0.000991, allocations: 179.9 kB / 8.478 MB, free: 1.883 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.146/1.146, allocations: 205.2 MB / 214.1 MB, free: 5.176 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008264/0.0008264, allocations: 78.84 kB / 262.1 MB, free: 5.223 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1813/0.1821, allocations: 52.97 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0742/0.2564, allocations: 47.58 MB / 362.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2367/0.4931, allocations: 74.83 MB / 437.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.4934, allocations: 65.08 kB / 437.5 MB, free: 10.7 MB / 314.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.004408/0.4978, allocations: 1.828 MB / 439.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.4978, allocations: 11.53 kB / 439.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.498, allocations: 9.344 kB / 439.4 MB, free: 10.26 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000104/0.4981, allocations: 177.4 kB / 439.5 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.4981, allocations: 3.844 kB / 439.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.611e-05/0.4981, allocations: 10.47 kB / 439.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001201/0.4983, allocations: 42.3 kB / 439.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.4984, allocations: 67.61 kB / 439.7 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.4984, allocations: 9.172 kB / 439.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.4984, allocations: 0 / 439.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.4984, allocations: 0 / 439.7 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004631/0.4989, allocations: 364.1 kB / 440 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.608e-05/0.499, allocations: 58.23 kB / 440.1 MB, free: 9.738 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.499, allocations: 33.92 kB / 440.1 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.499, allocations: 0 / 440.1 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.591e-05/0.4991, allocations: 36.06 kB / 440.2 MB, free: 9.688 MB / 314.7 MB Notification: Performance of pre-optimization done (n=8): time 1.042e-06/0.4991, allocations: 0 / 440.2 MB, free: 9.688 MB / 314.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001519/0.4992, allocations: 68 kB / 440.2 MB, free: 9.652 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.449e-05/0.4992, allocations: 51.41 kB / 440.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.959e-05/0.4993, allocations: 94 kB / 440.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.4993, allocations: 29.41 kB / 440.4 MB, free: 9.469 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.9e-05/0.4994, allocations: 101 kB / 440.5 MB, free: 9.375 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.558e-05/0.4994, allocations: 29.2 kB / 440.5 MB, free: 9.355 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.017e-06/0.4994, allocations: 3.938 kB / 440.5 MB, free: 9.352 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.4994, allocations: 328.2 kB / 440.8 MB, free: 9.031 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.991e-05/0.4995, allocations: 18.69 kB / 440.9 MB, free: 9.031 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.036e-05/0.4995, allocations: 37.83 kB / 440.9 MB, free: 9.008 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.973e-05/0.4996, allocations: 23.39 kB / 440.9 MB, free: 9.008 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4996, allocations: 0 / 440.9 MB, free: 9.008 MB / 314.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001158/0.4997, allocations: 96.78 kB / 441 MB, free: 8.969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.827e-06/0.4997, allocations: 7.844 kB / 441 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.4997, allocations: 0.75 kB / 441 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.4997, allocations: 7.75 kB / 441 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.4999, allocations: 22.11 kB / 441.1 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.4999, allocations: 5.188 kB / 441.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.342e-05/0.4999, allocations: 7.812 kB / 441.1 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.4999, allocations: 5.016 kB / 441.1 MB, free: 8.953 MB / 314.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 4.624e-05/0.5, allocations: 116.3 kB / 441.2 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/0.5, allocations: 3.812 kB / 441.2 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.37e-05/0.5001, allocations: 16.88 kB / 441.2 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.5001, allocations: 0 / 441.2 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.5001, allocations: 3.688 kB / 441.2 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.728e-06/0.5001, allocations: 1.172 kB / 441.2 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.5002, allocations: 156.2 kB / 441.4 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.5002, allocations: 0 / 441.4 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.5003, allocations: 18.16 kB / 441.4 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.5003, allocations: 7.781 kB / 441.4 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.5004, allocations: 0 / 441.4 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.5004, allocations: 4 kB / 441.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5004, allocations: 2.688 kB / 441.4 MB, free: 8.66 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001346/0.5005, allocations: 185.7 kB / 441.6 MB, free: 8.523 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001673/0.5007, allocations: 0.569 MB / 442.1 MB, free: 8.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.5007, allocations: 82.69 kB / 442.2 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.46e-05/0.5007, allocations: 7.875 kB / 442.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.515e-05/0.5008, allocations: 0 / 442.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.33e-05/0.5008, allocations: 5.281 kB / 442.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.5008, allocations: 1.453 kB / 442.2 MB, free: 7.918 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.127e-05/0.5009, allocations: 85.16 kB / 442.3 MB, free: 7.844 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007784/0.5016, allocations: 27.22 kB / 442.4 MB, free: 7.836 MB / 314.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 8.446e-05/0.5017, allocations: 101.1 kB / 442.5 MB, free: 7.742 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.409e-05/0.5018, allocations: 53.03 kB / 442.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.5018, allocations: 0 / 442.5 MB, free: 7.734 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.311e-05/0.5019, allocations: 24.08 kB / 442.5 MB, free: 7.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001652/0.502, allocations: 3.875 kB / 442.5 MB, free: 7.73 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004008/0.5025, allocations: 231.6 kB / 442.8 MB, free: 7.562 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.5026, allocations: 0.7108 MB / 443.5 MB, free: 6.859 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5026, allocations: 0 / 443.5 MB, free: 6.859 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_TwoMasses.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.TwoMasses_res.mat does not exist to compare? outputFormat=mat