Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_readRealParameterModel",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.001059/0.001059, allocations: 179.5 kB / 8.478 MB, free: 1.875 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.109/1.109, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.000892/0.0008921, allocations: 105.8 kB / 262.1 MB, free: 5.121 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.154/0.1549, allocations: 52.94 MB / 315 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06821/0.2231, allocations: 47.58 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2126/0.4358, allocations: 77.25 MB / 439.9 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000174/0.436, allocations: 79.16 kB / 439.9 MB, free: 10.62 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.01945/0.4554, allocations: 7.835 MB / 447.8 MB, free: 9.414 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.4555, allocations: 11.72 kB / 447.8 MB, free: 9.414 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.156e-05/0.4555, allocations: 79.19 kB / 447.9 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.4557, allocations: 242.2 kB / 448.1 MB, free: 9.062 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.214e-05/0.4557, allocations: 150.6 kB / 448.3 MB, free: 8.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.933e-05/0.4558, allocations: 150.6 kB / 448.4 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.053e-05/0.4558, allocations: 154.5 kB / 448.6 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.502e-05/0.4559, allocations: 108.4 kB / 448.7 MB, free: 8.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.4559, allocations: 75.28 kB / 448.7 MB, free: 8.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.318e-05/0.4559, allocations: 154.4 kB / 448.9 MB, free: 8.281 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.933e-05/0.456, allocations: 154.5 kB / 449 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001965/0.4562, allocations: 430.5 kB / 449.5 MB, free: 7.676 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.513e-05/0.4562, allocations: 169.2 kB / 449.6 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.042e-05/0.4563, allocations: 83.98 kB / 449.7 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.4563, allocations: 79.22 kB / 449.8 MB, free: 7.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.807e-05/0.4564, allocations: 47.19 kB / 449.8 MB, free: 7.285 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 2.205e-06/0.4564, allocations: 0 / 449.8 MB, free: 7.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001166/0.4565, allocations: 37.23 kB / 449.9 MB, free: 7.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.863e-05/0.4565, allocations: 51.41 kB / 449.9 MB, free: 7.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.603e-05/0.4566, allocations: 88.88 kB / 450 MB, free: 7.098 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.894e-06/0.4566, allocations: 25.7 kB / 450 MB, free: 7.066 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.408e-05/0.4566, allocations: 86.92 kB / 450.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.498e-05/0.4566, allocations: 3.672 kB / 450.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-06/0.4567, allocations: 0 / 450.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.982e-05/0.4567, allocations: 322.8 kB / 450.4 MB, free: 6.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.821e-06/0.4567, allocations: 0 / 450.4 MB, free: 6.66 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.729e-06/0.4567, allocations: 3.844 kB / 450.4 MB, free: 6.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.044e-05/0.4567, allocations: 3.938 kB / 450.4 MB, free: 6.656 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4568, allocations: 0 / 450.4 MB, free: 6.656 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.164e-05/0.4568, allocations: 33.45 kB / 450.5 MB, free: 6.621 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.778e-06/0.4568, allocations: 3.875 kB / 450.5 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.4568, allocations: 3.969 kB / 450.5 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.4568, allocations: 4.031 kB / 450.5 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.608e-05/0.4569, allocations: 4 kB / 450.5 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.4569, allocations: 0 / 450.5 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.61e-05/0.4569, allocations: 0 / 450.5 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.891e-06/0.4569, allocations: 6.297 kB / 450.5 MB, free: 6.609 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.118e-05/0.457, allocations: 104.8 kB / 450.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.086e-06/0.457, allocations: 3.906 kB / 450.6 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.706e-05/0.457, allocations: 3.156 kB / 450.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.457, allocations: 192 / 450.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.457, allocations: 3.844 kB / 450.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.457, allocations: 11.92 kB / 450.6 MB, free: 6.484 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.269e-05/0.4571, allocations: 129 kB / 450.7 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.4571, allocations: 0 / 450.7 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.4571, allocations: 4 kB / 450.7 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.4571, allocations: 3.844 kB / 450.7 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.4572, allocations: 0 / 450.7 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.4572, allocations: 3.906 kB / 450.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4572, allocations: 0 / 450.8 MB, free: 6.316 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.865e-05/0.4572, allocations: 59.69 kB / 450.8 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001164/0.4573, allocations: 449.3 kB / 451.2 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.057e-05/0.4574, allocations: 84.91 kB / 451.3 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.391e-05/0.4574, allocations: 0 / 451.3 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.237e-05/0.4574, allocations: 0 / 451.3 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.036e-05/0.4574, allocations: 7.281 kB / 451.3 MB, free: 5.703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-06/0.4574, allocations: 4 kB / 451.3 MB, free: 5.699 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.178e-05/0.4575, allocations: 79.12 kB / 451.4 MB, free: 5.625 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001031/0.4585, allocations: 177.4 kB / 451.6 MB, free: 5.578 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.0008551/0.4594, allocations: 0.4927 MB / 452.1 MB, free: 5.297 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.222e-05/0.4594, allocations: 3.938 kB / 452.1 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4594, allocations: 0 / 452.1 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.441e-06/0.4594, allocations: 6.094 kB / 452.1 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.404e-05/0.4595, allocations: 0 / 452.1 MB, free: 5.293 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001477/0.4597, allocations: 51.42 kB / 452.1 MB, free: 5.227 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.4599, allocations: 0.695 MB / 452.8 MB, free: 20.52 MB / 330.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4599, allocations: 0 / 452.8 MB, free: 20.52 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat does not exist to compare? outputFormat=mat