Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.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.Math.Nonlinear.Examples.quadratureLobatto3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|q|qd",fileNamePrefix="Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3") translateModel(Modelica.Math.Nonlinear.Examples.quadratureLobatto3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|q|qd",fileNamePrefix="Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3") [: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.001428/0.001428, allocations: 179 kB / 8.48 MB, free: 1.883 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.272/1.272, allocations: 205.2 MB / 214.1 MB, free: 5.516 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.0009187/0.0009188, allocations: 94.19 kB / 262.1 MB, free: 5.551 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.131e-06, allocations: 4 kB / 315 MB, free: 41.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07043/0.07044, allocations: 47.57 MB / 362.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2255/0.296, allocations: 74.46 MB / 437 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001858/0.2962, allocations: 66.3 kB / 437.1 MB, free: 10.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.00946/0.3057, allocations: 3.221 MB / 440.3 MB, free: 10.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3057, allocations: 0 / 440.3 MB, free: 10.57 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002404/0.306, allocations: 375.5 kB / 440.6 MB, free: 10.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.306, allocations: 8.391 kB / 440.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.915e-05/0.3061, allocations: 7.719 kB / 440.7 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.3062, allocations: 160.5 kB / 440.8 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.3062, allocations: 4.375 kB / 440.8 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.3062, allocations: 0 / 440.8 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.028e-05/0.3063, allocations: 8.859 kB / 440.8 MB, free: 9.988 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.197e-05/0.3063, allocations: 39.55 kB / 440.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.3063, allocations: 0.5156 kB / 440.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.3063, allocations: 4 kB / 440.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3064, allocations: 3.969 kB / 440.9 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00012/0.3065, allocations: 136.5 kB / 441 MB, free: 9.785 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.344e-05/0.3065, allocations: 25.69 kB / 441 MB, free: 9.766 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.127e-05/0.3066, allocations: 10.86 kB / 441 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.3066, allocations: 0.6094 kB / 441.1 MB, free: 9.758 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.3066, allocations: 38.39 kB / 441.1 MB, free: 9.719 MB / 314.7 MB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.3066, allocations: 4 kB / 441.1 MB, free: 9.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=3): time 0.000106/0.3067, allocations: 43.97 kB / 441.1 MB, free: 9.676 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.839e-05/0.3067, allocations: 52.02 kB / 441.2 MB, free: 9.613 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.896e-05/0.3068, allocations: 93.2 kB / 441.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.081e-06/0.3068, allocations: 25.7 kB / 441.3 MB, free: 9.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.253e-05/0.3068, allocations: 84.69 kB / 441.4 MB, free: 9.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.204e-05/0.3069, allocations: 12.17 kB / 441.4 MB, free: 9.402 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.3069, allocations: 0 / 441.4 MB, free: 9.402 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.593e-05/0.3069, allocations: 318.9 kB / 441.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.359e-05/0.3069, allocations: 6.875 kB / 441.7 MB, free: 9.086 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.871e-05/0.307, allocations: 17.89 kB / 441.7 MB, free: 9.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.916e-05/0.307, allocations: 7.906 kB / 441.7 MB, free: 9.07 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.307, allocations: 0 / 441.7 MB, free: 9.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.625e-05/0.3071, allocations: 50.7 kB / 441.8 MB, free: 9.035 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.896e-06/0.3071, allocations: 8.406 kB / 441.8 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.3071, allocations: 0 / 441.8 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.3071, allocations: 7.938 kB / 441.8 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.334e-05/0.3072, allocations: 11.98 kB / 441.8 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.3072, allocations: 7.062 kB / 441.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.051e-05/0.3072, allocations: 4.469 kB / 441.8 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.697e-06/0.3072, allocations: 0 / 441.8 MB, free: 9.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 3.488e-05/0.3073, allocations: 101 kB / 441.9 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-06/0.3073, allocations: 8.562 kB / 441.9 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.375e-05/0.3073, allocations: 7.812 kB / 441.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3073, allocations: 0 / 441.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3073, allocations: 4.562 kB / 441.9 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.3073, allocations: 3.938 kB / 442 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.709e-05/0.3074, allocations: 133.1 kB / 442.1 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3074, allocations: 0 / 442.1 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.105e-05/0.3075, allocations: 9.719 kB / 442.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.3075, allocations: 0 / 442.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.3075, allocations: 3.844 kB / 442.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3075, allocations: 0 / 442.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.3075, allocations: 0.9844 kB / 442.1 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.699e-05/0.3076, allocations: 79.5 kB / 442.2 MB, free: 8.664 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.009e-05/0.3076, allocations: 77.77 kB / 442.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.3076, allocations: 0.6094 kB / 442.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.892e-05/0.3077, allocations: 0 / 442.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.232e-05/0.3077, allocations: 5.594 kB / 442.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.3077, allocations: 0 / 442.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.244e-05/0.3077, allocations: 91.33 kB / 442.3 MB, free: 8.488 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002777/0.308, allocations: 68.73 kB / 442.4 MB, free: 8.465 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (q,qd) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0002424/0.3082, allocations: 180 kB / 442.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.242e-05/0.3083, allocations: 16.17 kB / 442.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3083, allocations: 0 / 442.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.796e-06/0.3083, allocations: 3.812 kB / 442.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.687e-05/0.3084, allocations: 7.609 kB / 442.6 MB, free: 8.348 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001834/0.3086, allocations: 81.8 kB / 442.7 MB, free: 8.266 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.3088, allocations: 0.6889 MB / 443.4 MB, free: 7.566 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3088, allocations: 8.031 kB / 443.4 MB, free: 7.562 MB / 314.7 MB Notification: Performance of Templates: time 0.0029/0.3117, allocations: 1.052 MB / 444.4 MB, free: 7.461 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.makefile (rm -f Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.sim & ./Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Math/Nonlinear/Examples/quadratureLobatto3/quadratureLobatto3.csv","../files/Modelica_3.2.3_Modelica.Math.Nonlinear.Examples.quadratureLobatto3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches