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: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001002/0.001002, allocations: 176.9 kB / 8.475 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.407/1.407, allocations: 205.2 MB / 214.1 MB, free: 5.422 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.0008786/0.0008786, allocations: 79.41 kB / 262.1 MB, free: 5.496 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.401e-06/5.43e-06, allocations: 0 / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07712/0.07714, allocations: 47.58 MB / 362.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2367/0.3139, allocations: 77.25 MB / 439.8 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001834/0.3142, allocations: 70.41 kB / 439.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02055/0.3347, allocations: 7.374 MB / 447.2 MB, free: 9.855 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.3348, allocations: 0 / 447.2 MB, free: 9.855 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.0006013/0.3354, allocations: 465.8 kB / 447.7 MB, free: 9.418 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.3354, allocations: 7.688 kB / 447.7 MB, free: 9.418 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.3355, allocations: 79.19 kB / 447.8 MB, free: 9.34 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.3356, allocations: 242.2 kB / 448 MB, free: 9.066 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.271e-05/0.3356, allocations: 150.6 kB / 448.2 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.291e-05/0.3357, allocations: 158.5 kB / 448.3 MB, free: 8.766 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.498e-05/0.3357, allocations: 150.6 kB / 448.5 MB, free: 8.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.202e-05/0.3357, allocations: 105 kB / 448.6 MB, free: 8.508 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.3357, allocations: 75.28 kB / 448.6 MB, free: 8.434 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.816e-05/0.3358, allocations: 153.6 kB / 448.8 MB, free: 8.285 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/0.3358, allocations: 158.4 kB / 448.9 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.336, allocations: 430.1 kB / 449.4 MB, free: 7.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.145e-05/0.336, allocations: 173.2 kB / 449.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.876e-05/0.3361, allocations: 80.14 kB / 449.6 MB, free: 7.418 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.3361, allocations: 75.28 kB / 449.7 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.584e-05/0.3362, allocations: 47.19 kB / 449.7 MB, free: 7.289 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.994e-06/0.3362, allocations: 4 kB / 449.7 MB, free: 7.285 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001059/0.3363, allocations: 37.27 kB / 449.8 MB, free: 7.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.178e-05/0.3363, allocations: 55.22 kB / 449.8 MB, free: 7.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.464e-05/0.3364, allocations: 88.78 kB / 449.9 MB, free: 7.098 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.861e-06/0.3364, allocations: 25.7 kB / 449.9 MB, free: 7.066 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.329e-05/0.3364, allocations: 87.31 kB / 450 MB, free: 6.98 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.197e-05/0.3364, allocations: 0 / 450 MB, free: 6.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-06/0.3365, allocations: 0 / 450 MB, free: 6.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.284e-05/0.3365, allocations: 318.8 kB / 450.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.32e-06/0.3365, allocations: 0 / 450.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.667e-06/0.3365, allocations: 0 / 450.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.23e-05/0.3365, allocations: 0 / 450.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.3365, allocations: 0 / 450.3 MB, free: 6.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.556e-05/0.3366, allocations: 48.98 kB / 450.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.3366, allocations: 3.844 kB / 450.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3366, allocations: 0 / 450.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.3366, allocations: 0 / 450.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.587e-05/0.3367, allocations: 8.078 kB / 450.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.3367, allocations: 3.906 kB / 450.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.712e-05/0.3367, allocations: 0 / 450.4 MB, free: 6.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.3367, allocations: 3.984 kB / 450.4 MB, free: 6.605 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 4.292e-05/0.3368, allocations: 104.5 kB / 450.5 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-06/0.3368, allocations: 3.906 kB / 450.5 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.3368, allocations: 6.938 kB / 450.5 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3368, allocations: 0 / 450.5 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3368, allocations: 0 / 450.5 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3368, allocations: 4 kB / 450.5 MB, free: 6.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.746e-05/0.3369, allocations: 133.8 kB / 450.6 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3369, allocations: 0 / 450.6 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.567e-06/0.3369, allocations: 0 / 450.6 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3369, allocations: 0 / 450.6 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.3369, allocations: 4 kB / 450.6 MB, free: 6.324 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3369, allocations: 3.906 kB / 450.6 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3369, allocations: 3.812 kB / 450.6 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.696e-05/0.337, allocations: 64.75 kB / 450.7 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.892e-05/0.337, allocations: 81.02 kB / 450.8 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.337, allocations: 3.719 kB / 450.8 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.405e-05/0.3371, allocations: 3.984 kB / 450.8 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.764e-06/0.3371, allocations: 0 / 450.8 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-06/0.3371, allocations: 0 / 450.8 MB, free: 6.145 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.951e-05/0.3371, allocations: 82.91 kB / 450.9 MB, free: 6.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006185/0.3377, allocations: 161.4 kB / 451 MB, free: 6.02 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.0009703/0.3387, allocations: 494.2 kB / 451.5 MB, free: 5.754 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.583e-05/0.3388, allocations: 7.844 kB / 451.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3388, allocations: 0 / 451.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.258e-06/0.3388, allocations: 0 / 451.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001005/0.3389, allocations: 7.719 kB / 451.5 MB, free: 5.75 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000154/0.3391, allocations: 51.77 kB / 451.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001289/0.3392, allocations: 0.6917 MB / 452.3 MB, free: 4.969 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3392, allocations: 0 / 452.3 MB, free: 4.969 MB / 314.7 MB Notification: Performance of Templates: time 0.005582/0.3448, allocations: 2.705 MB / 455 MB, free: 3.566 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.makefile (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 & ./Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Utilities/Examples/readRealParameterModel/readRealParameterModel.csv","../files/Modelica_3.2.3_Modelica.Utilities.Examples.readRealParameterModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches