Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009937/0.0009938, allocations: 184.1 kB / 8.135 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.086/1.086, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008153/0.0008156, allocations: 114.3 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09664/0.09748, allocations: 55.79 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.2898, allocations: 50.39 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07817/0.368, allocations: 78.37 MB / 465.4 MB, free: 8.426 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001984/0.3683, allocations: 67.97 kB / 465.4 MB, free: 8.359 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.02065/0.3889, allocations: 7.921 MB / 473.3 MB, free: 452 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.389, allocations: 11.94 kB / 473.4 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.399e-05/0.3891, allocations: 79.28 kB / 473.4 MB, free: 360 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.3892, allocations: 242.3 kB / 473.7 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.175e-05/0.3893, allocations: 162.5 kB / 473.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.3893, allocations: 150.6 kB / 474 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.36e-05/0.3894, allocations: 150.6 kB / 474.1 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.514e-05/0.3894, allocations: 105 kB / 474.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/0.3895, allocations: 75.28 kB / 474.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.763e-05/0.3895, allocations: 154.6 kB / 474.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.397e-05/0.3896, allocations: 154.5 kB / 474.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002396/0.3898, allocations: 430.4 kB / 475 MB, free: 14.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.387e-05/0.3899, allocations: 165.1 kB / 475.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.726e-05/0.39, allocations: 84.14 kB / 475.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.504e-05/0.39, allocations: 79.27 kB / 475.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.275e-05/0.3901, allocations: 47.36 kB / 475.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.964e-06/0.3901, allocations: 0 / 475.4 MB, free: 14.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001006/0.3902, allocations: 41.62 kB / 475.4 MB, free: 14.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.3902, allocations: 51.41 kB / 475.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.298e-05/0.3903, allocations: 100.9 kB / 475.6 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.3903, allocations: 25.7 kB / 475.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.492e-05/0.3904, allocations: 84.14 kB / 475.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.021e-05/0.3904, allocations: 0 / 475.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-06/0.3904, allocations: 0 / 475.7 MB, free: 13.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.269e-05/0.3905, allocations: 314.8 kB / 476 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-06/0.3905, allocations: 0 / 476 MB, free: 13.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.386e-06/0.3905, allocations: 0 / 476 MB, free: 13.63 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.199e-05/0.3905, allocations: 8.047 kB / 476 MB, free: 13.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.3905, allocations: 0 / 476 MB, free: 13.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.607e-05/0.3906, allocations: 37.64 kB / 476 MB, free: 13.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.486e-06/0.3906, allocations: 4 kB / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.3906, allocations: 3.906 kB / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.916e-06/0.3906, allocations: 0 / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.233e-05/0.3906, allocations: 0 / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.97e-06/0.3906, allocations: 0 / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.401e-05/0.3907, allocations: 0 / 476 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-06/0.3907, allocations: 4 kB / 476 MB, free: 13.57 MB / 362.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 6.114e-05/0.3907, allocations: 105 kB / 476.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.112e-05/0.3908, allocations: 7.891 kB / 476.2 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.62e-05/0.3908, allocations: 11.16 kB / 476.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3908, allocations: 0 / 476.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.3908, allocations: 0 / 476.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3908, allocations: 0 / 476.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.723e-05/0.3909, allocations: 134.2 kB / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.3909, allocations: 0 / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-06/0.3909, allocations: 0 / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.3909, allocations: 4 kB / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.3909, allocations: 0 / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.3909, allocations: 0 / 476.3 MB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3909, allocations: 3.906 kB / 476.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.471e-05/0.391, allocations: 65.06 kB / 476.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001886/0.3912, allocations: 445.5 kB / 476.8 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.3913, allocations: 89.09 kB / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.201e-05/0.3913, allocations: 0 / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.281e-05/0.3913, allocations: 0 / 476.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.548e-06/0.3913, allocations: 7.844 kB / 476.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-06/0.3913, allocations: 0 / 476.9 MB, free: 12.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.172e-05/0.3914, allocations: 87.45 kB / 477 MB, free: 12.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009703/0.3923, allocations: 175.9 kB / 477.2 MB, free: 12.35 MB / 362.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.0009133/0.3933, allocations: 0.5003 MB / 477.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 4.777e-05/0.3933, allocations: 4 kB / 477.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3933, allocations: 0 / 477.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.687e-06/0.3933, allocations: 0 / 477.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.679e-05/0.3934, allocations: 0 / 477.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001582/0.3936, allocations: 55.88 kB / 477.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.3939, allocations: 0.6959 MB / 478.4 MB, free: 11.1 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3939, allocations: 0 / 478.4 MB, free: 11.1 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat does not exist to compare? outputFormat=mat