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: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel") [: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.001499/0.001499, allocations: 183.4 kB / 8.136 MB, free: 2.207 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.167/1.167, allocations: 221.4 MB / 229.9 MB, free: 3.359 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.0009476/0.0009477, allocations: 101.3 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.793e-06/6.843e-06, allocations: 0 / 336.5 MB, free: 9.559 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2149/0.2149, allocations: 50.39 MB / 386.9 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09016/0.3051, allocations: 78.37 MB / 465.3 MB, free: 8.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.3054, allocations: 71.91 kB / 465.3 MB, free: 8.383 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02217/0.3276, allocations: 7.465 MB / 472.8 MB, free: 0.957 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.3276, allocations: 0 / 472.8 MB, free: 0.957 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.0006048/0.3282, allocations: 458.2 kB / 473.3 MB, free: 476 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.3283, allocations: 11.97 kB / 473.3 MB, free: 464 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.3283, allocations: 75.28 kB / 473.3 MB, free: 388 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001696/0.3285, allocations: 246.3 kB / 473.6 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.259e-05/0.3286, allocations: 154.5 kB / 473.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.3286, allocations: 154.5 kB / 473.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.065e-05/0.3287, allocations: 150.6 kB / 474 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.959e-05/0.3288, allocations: 101.9 kB / 474.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.821e-05/0.3288, allocations: 79.28 kB / 474.2 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.936e-05/0.3289, allocations: 154.6 kB / 474.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.843e-05/0.3289, allocations: 158.5 kB / 474.5 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002452/0.3292, allocations: 426.4 kB / 474.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.931e-05/0.3293, allocations: 173.1 kB / 475.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.986e-05/0.3293, allocations: 84.14 kB / 475.2 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.3294, allocations: 75.28 kB / 475.2 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.769e-05/0.3295, allocations: 43.36 kB / 475.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 2.284e-06/0.3295, allocations: 0 / 475.3 MB, free: 14.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001335/0.3296, allocations: 33.69 kB / 475.3 MB, free: 14.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.3296, allocations: 59.38 kB / 475.4 MB, free: 14.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.085e-05/0.3297, allocations: 96.91 kB / 475.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.3297, allocations: 25.7 kB / 475.5 MB, free: 14.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.274e-05/0.3298, allocations: 84.14 kB / 475.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.3298, allocations: 0 / 475.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-06/0.3298, allocations: 0 / 475.6 MB, free: 13.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3299, allocations: 314.8 kB / 475.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.274e-06/0.3299, allocations: 4 kB / 475.9 MB, free: 13.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.517e-06/0.3299, allocations: 4 kB / 475.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.116e-05/0.33, allocations: 4 kB / 475.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.33, allocations: 0 / 475.9 MB, free: 13.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.926e-05/0.33, allocations: 33.64 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.33, allocations: 4.625 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.33, allocations: 3.906 kB / 475.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.3301, allocations: 0 / 475.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.896e-05/0.3301, allocations: 8 kB / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.3301, allocations: 0 / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.863e-05/0.3301, allocations: 4.094 kB / 476 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.3301, allocations: 0 / 476 MB, free: 13.59 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.799e-05/0.3302, allocations: 105 kB / 476.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.3302, allocations: 7.906 kB / 476.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.854e-05/0.3303, allocations: 3.156 kB / 476.1 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3303, allocations: 3.938 kB / 476.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3303, allocations: 0 / 476.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3303, allocations: 0 / 476.1 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.523e-05/0.3304, allocations: 134.2 kB / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3304, allocations: 0 / 476.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-06/0.3304, allocations: 4 kB / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.3304, allocations: 0 / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-06/0.3304, allocations: 0 / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3304, allocations: 0 / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.3304, allocations: 7.906 kB / 476.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 5.474e-05/0.3305, allocations: 57.06 kB / 476.3 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.3305, allocations: 77.11 kB / 476.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.3306, allocations: 7.938 kB / 476.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.388e-05/0.3306, allocations: 4 kB / 476.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.3306, allocations: 7.938 kB / 476.4 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.118e-06/0.3306, allocations: 3.984 kB / 476.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.063e-05/0.3307, allocations: 79.47 kB / 476.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005206/0.3312, allocations: 151.9 kB / 476.6 MB, free: 12.87 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.0009236/0.3321, allocations: 0.5011 MB / 477.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 5.043e-05/0.3322, allocations: 8 kB / 477.1 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3322, allocations: 3.938 kB / 477.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.37e-06/0.3322, allocations: 4 kB / 477.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.568e-05/0.3323, allocations: 0 / 477.1 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001628/0.3325, allocations: 51.92 kB / 477.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.3327, allocations: 0.688 MB / 477.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3327, allocations: 0 / 477.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of Templates: time 0.005522/0.3383, allocations: 2.706 MB / 480.6 MB, free: 8.926 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.makefile (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 & ./Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches