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"}) [: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 4.0.0+maint.om/package.mo): time 0.0009966/0.0009966, allocations: 184 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.067/1.067, allocations: 221.4 MB / 229.9 MB, free: 3.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.0009123, allocations: 91.52 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08865/0.0896, allocations: 55.8 MB / 336.6 MB, free: 9.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1695/0.2592, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07133/0.3305, allocations: 75.7 MB / 462.7 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001769/0.3307, allocations: 71.28 kB / 462.8 MB, free: 11.02 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.00453/0.3353, allocations: 1.821 MB / 464.6 MB, free: 9.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.3353, allocations: 16 kB / 464.6 MB, free: 9.164 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.3354, allocations: 12.52 kB / 464.6 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001012/0.3356, allocations: 167.9 kB / 464.8 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.3356, allocations: 4 kB / 464.8 MB, free: 8.945 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/0.3356, allocations: 7.906 kB / 464.8 MB, free: 8.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001211/0.3357, allocations: 47.98 kB / 464.8 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001074/0.3358, allocations: 72.55 kB / 464.9 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.3359, allocations: 1.125 kB / 464.9 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3359, allocations: 3.984 kB / 464.9 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.3359, allocations: 4 kB / 464.9 MB, free: 8.809 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005219/0.3364, allocations: 365 kB / 465.3 MB, free: 8.414 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.705e-05/0.3365, allocations: 52.14 kB / 465.3 MB, free: 8.359 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.834e-05/0.3366, allocations: 28.86 kB / 465.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.3366, allocations: 4 kB / 465.4 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.3366, allocations: 30.56 kB / 465.4 MB, free: 8.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.3366, allocations: 4 kB / 465.4 MB, free: 8.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001557/0.3368, allocations: 65.59 kB / 465.5 MB, free: 8.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.3368, allocations: 59.5 kB / 465.5 MB, free: 8.141 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.821e-05/0.3369, allocations: 93.75 kB / 465.6 MB, free: 8.043 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.214e-05/0.3369, allocations: 25.7 kB / 465.6 MB, free: 8.012 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.096e-05/0.3369, allocations: 99.88 kB / 465.7 MB, free: 7.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.337, allocations: 35.55 kB / 465.8 MB, free: 7.875 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.337, allocations: 0 / 465.8 MB, free: 7.875 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3371, allocations: 314.8 kB / 466.1 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.349e-05/0.3371, allocations: 20 kB / 466.1 MB, free: 7.539 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.578e-05/0.3372, allocations: 42.56 kB / 466.1 MB, free: 7.488 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.679e-05/0.3372, allocations: 24.89 kB / 466.2 MB, free: 7.465 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.3373, allocations: 3.938 kB / 466.2 MB, free: 7.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001318/0.3374, allocations: 98.38 kB / 466.3 MB, free: 7.359 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.979e-06/0.3374, allocations: 4 kB / 466.3 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3374, allocations: 0 / 466.3 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.3374, allocations: 3.906 kB / 466.3 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.3376, allocations: 21.75 kB / 466.3 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.3376, allocations: 8.609 kB / 466.3 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.345e-05/0.3376, allocations: 11.88 kB / 466.3 MB, free: 7.312 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-06/0.3376, allocations: 0 / 466.3 MB, free: 7.312 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 7.098e-05/0.3377, allocations: 117 kB / 466.4 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.3378, allocations: 0.6562 kB / 466.4 MB, free: 7.191 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.3378, allocations: 12.28 kB / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-06/0.3378, allocations: 0 / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3378, allocations: 0 / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3378, allocations: 0 / 466.4 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.338, allocations: 162.2 kB / 466.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.338, allocations: 4 kB / 466.6 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.3381, allocations: 16.75 kB / 466.6 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3381, allocations: 7.906 kB / 466.6 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.3381, allocations: 0 / 466.6 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.3381, allocations: 9.422 kB / 466.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.3381, allocations: 0 / 466.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001645/0.3383, allocations: 189.9 kB / 466.8 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002635/0.3386, allocations: 0.5673 MB / 467.4 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.186e-05/0.3386, allocations: 89 kB / 467.5 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.3387, allocations: 0 / 467.5 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.23e-05/0.3387, allocations: 0 / 467.5 MB, free: 6.059 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.168e-05/0.3387, allocations: 11.94 kB / 467.5 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.3388, allocations: 0 / 467.5 MB, free: 6.047 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.213e-05/0.3388, allocations: 84.27 kB / 467.6 MB, free: 5.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007533/0.3395, allocations: 27.84 kB / 467.6 MB, free: 5.938 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.0001192/0.3397, allocations: 103.2 kB / 467.7 MB, free: 5.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.3398, allocations: 51.94 kB / 467.7 MB, free: 5.777 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3398, allocations: 0 / 467.7 MB, free: 5.777 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.618e-05/0.3398, allocations: 20 kB / 467.8 MB, free: 5.758 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001668/0.34, allocations: 3.984 kB / 467.8 MB, free: 5.754 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004317/0.3404, allocations: 249.2 kB / 468 MB, free: 5.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.3407, allocations: 0.7114 MB / 468.7 MB, free: 4.754 MB / 346.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3407, allocations: 0 / 468.7 MB, free: 4.754 MB / 346.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