Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001568/0.001568, allocations: 172.8 kB / 8.146 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.726/1.726, allocations: 205.2 MB / 213.8 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001269/0.001269, allocations: 91.84 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2791/0.2791, allocations: 43.5 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.145e-05/1.16e-05, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2798, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.4336, allocations: 85.75 MB / 0.5491 GB, free: 13.31 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.434, allocations: 71.47 kB / 0.5492 GB, free: 13.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 6.763/7.197, allocations: 1.658 GB / 2.207 GB, free: 105.7 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/7.197, allocations: 0 / 2.207 GB, free: 105.7 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.003502/7.201, allocations: 444.3 kB / 2.208 GB, free: 105.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/7.201, allocations: 8.031 kB / 2.208 GB, free: 105.2 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/7.201, allocations: 0 / 2.208 GB, free: 105.2 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.968e-05/7.201, allocations: 163 kB / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/7.201, allocations: 0 / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/7.201, allocations: 4 kB / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.107e-05/7.201, allocations: 7.922 kB / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.743e-05/7.201, allocations: 25.7 kB / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/7.201, allocations: 3.906 kB / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/7.201, allocations: 0 / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/7.201, allocations: 4 kB / 2.208 GB, free: 105 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.672e-05/7.201, allocations: 122.2 kB / 2.208 GB, free: 104.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.232e-05/7.201, allocations: 22.11 kB / 2.208 GB, free: 104.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.384e-05/7.201, allocations: 4.859 kB / 2.208 GB, free: 104.8 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-06/7.201, allocations: 4.094 kB / 2.208 GB, free: 104.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/7.201, allocations: 60.27 kB / 2.208 GB, free: 104.7 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.433e-06/7.201, allocations: 0 / 2.208 GB, free: 104.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001193/7.202, allocations: 41.61 kB / 2.208 GB, free: 104.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.891e-05/7.202, allocations: 80.95 kB / 2.208 GB, free: 104.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.061e-05/7.202, allocations: 85 kB / 2.208 GB, free: 104.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.755e-06/7.202, allocations: 25.7 kB / 2.208 GB, free: 104.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.357e-05/7.202, allocations: 150.6 kB / 2.208 GB, free: 104.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/7.202, allocations: 3.906 kB / 2.208 GB, free: 104.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-06/7.202, allocations: 0 / 2.208 GB, free: 104.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.919e-05/7.202, allocations: 314.8 kB / 2.209 GB, free: 104 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.285e-06/7.202, allocations: 0 / 2.209 GB, free: 104 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.971e-06/7.202, allocations: 7.531 kB / 2.209 GB, free: 104 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.396e-05/7.202, allocations: 0 / 2.209 GB, free: 104 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/7.202, allocations: 0 / 2.209 GB, free: 104 MB / 490.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.609e-05/7.202, allocations: 41.69 kB / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.304e-05/7.202, allocations: 11.22 kB / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/7.202, allocations: 0 / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/7.202, allocations: 0 / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/7.202, allocations: 0 / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.597e-06/7.202, allocations: 0 / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.532e-05/7.202, allocations: 7.719 kB / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/7.202, allocations: 4 kB / 2.209 GB, free: 103.9 MB / 490.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 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.21e-05/7.202, allocations: 51.97 kB / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-06/7.202, allocations: 0 / 2.209 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.394e-05/7.202, allocations: 3 kB / 2.209 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/7.202, allocations: 4 kB / 2.209 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/7.202, allocations: 7.984 kB / 2.209 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/7.202, allocations: 0 / 2.209 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.49e-05/7.202, allocations: 130.1 kB / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/7.202, allocations: 3.875 kB / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.022e-06/7.202, allocations: 0 / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/7.202, allocations: 0 / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/7.202, allocations: 4 kB / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/7.202, allocations: 0 / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/7.202, allocations: 0 / 2.209 GB, free: 103.7 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.692e-05/7.202, allocations: 61.03 kB / 2.209 GB, free: 103.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.028e-05/7.202, allocations: 85.05 kB / 2.209 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/7.202, allocations: 3.781 kB / 2.209 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.159e-05/7.202, allocations: 0 / 2.209 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.097e-05/7.202, allocations: 0 / 2.209 GB, free: 103.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/7.202, allocations: 0 / 2.209 GB, free: 103.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.463e-05/7.202, allocations: 75.28 kB / 2.209 GB, free: 103.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001999/7.203, allocations: 4 kB / 2.209 GB, free: 103.4 MB / 490.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 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 8.9e-05/7.203, allocations: 95.23 kB / 2.209 GB, free: 103.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.666e-05/7.203, allocations: 33.58 kB / 2.209 GB, free: 103.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/7.203, allocations: 2.625 kB / 2.209 GB, free: 103.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.777e-05/7.203, allocations: 29.7 kB / 2.209 GB, free: 103.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/7.203, allocations: 0 / 2.209 GB, free: 103.2 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000137/7.203, allocations: 74.81 kB / 2.209 GB, free: 103.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/7.203, allocations: 0.688 MB / 2.21 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of SimCode: time 6.62e-07/7.203, allocations: 0 / 2.21 GB, free: 118.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.001539/7.205, allocations: 342.8 kB / 2.21 GB, free: 118.1 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches