Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.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.Blocks.Examples.NoiseExamples.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise") translateModel(Modelica.Blocks.Examples.NoiseExamples.UniformNoise,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|uniformNoise2_y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise") [: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.001451/0.001451, allocations: 178.9 kB / 8.477 MB, free: 1.879 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.287/1.287, allocations: 205.2 MB / 214.1 MB, free: 5.086 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.0008469/0.0008468, allocations: 94.25 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.848e-06/1.008e-05, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09318, allocations: 47.57 MB / 362.5 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2442/0.3375, allocations: 75.31 MB / 437.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001666/0.3377, allocations: 67.64 kB / 437.9 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01035/0.3481, allocations: 3.781 MB / 441.7 MB, free: 10.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.3481, allocations: 3.875 kB / 441.7 MB, free: 10.48 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005065/0.3487, allocations: 431.5 kB / 442.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3487, allocations: 11.56 kB / 442.1 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.349, allocations: 43.62 kB / 442.2 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000131/0.3491, allocations: 192 kB / 442.4 MB, free: 9.871 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.3492, allocations: 8.359 kB / 442.4 MB, free: 9.867 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.3492, allocations: 4.734 kB / 442.4 MB, free: 9.867 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.575e-05/0.3493, allocations: 31.89 kB / 442.4 MB, free: 9.867 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001536/0.3495, allocations: 103 kB / 442.5 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.3495, allocations: 3.938 kB / 442.5 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.3495, allocations: 0.9844 kB / 442.5 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3495, allocations: 7.828 kB / 442.5 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000459/0.35, allocations: 337.7 kB / 442.9 MB, free: 9.562 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.3501, allocations: 103.6 kB / 443 MB, free: 9.512 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.891e-05/0.3502, allocations: 46.44 kB / 443 MB, free: 9.492 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.3502, allocations: 0 / 443 MB, free: 9.492 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.3504, allocations: 138.7 kB / 443.1 MB, free: 9.41 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 1.072e-06/0.3504, allocations: 0 / 443.1 MB, free: 9.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002431/0.3506, allocations: 128.6 kB / 443.3 MB, free: 9.371 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.3507, allocations: 91.2 kB / 443.3 MB, free: 9.277 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.3508, allocations: 157.5 kB / 443.5 MB, free: 9.176 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.295e-05/0.3508, allocations: 45.62 kB / 443.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.278e-05/0.3509, allocations: 94.33 kB / 443.6 MB, free: 9.059 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.593e-05/0.3509, allocations: 43.33 kB / 443.7 MB, free: 9.035 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.1e-05/0.351, allocations: 0 / 443.7 MB, free: 9.035 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.044e-05/0.351, allocations: 326.6 kB / 444 MB, free: 8.723 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001089/0.3511, allocations: 75.11 kB / 444.1 MB, free: 8.715 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.3513, allocations: 103.3 kB / 444.2 MB, free: 8.691 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002451/0.3515, allocations: 97.41 kB / 444.3 MB, free: 8.691 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3515, allocations: 7.906 kB / 444.3 MB, free: 8.684 MB / 314.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004022/0.3519, allocations: 256.9 kB / 444.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.352, allocations: 3.844 kB / 444.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.352, allocations: 4.609 kB / 444.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.352, allocations: 0 / 444.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.3521, allocations: 27.81 kB / 444.6 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.3522, allocations: 3.906 kB / 444.6 MB, free: 8.633 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.974e-05/0.3522, allocations: 29.12 kB / 444.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.3523, allocations: 8.922 kB / 444.6 MB, free: 8.617 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition2,$whenCondition1,$PRE.uniformNoise2.state[1],uniformNoise2.state[1],$PRE.uniformNoise2.state[2],uniformNoise2.state[2],$PRE.uniformNoise2.state[3],uniformNoise2.state[3],$PRE.uniformNoise2.state[4],uniformNoise2.state[4],$PRE.uniformNoise2.r,uniformNoise2.r,$PRE.uniformNoise2.r_raw,uniformNoise2.r_raw,$PRE.uniformNoise1.state[1],uniformNoise1.state[1],$PRE.uniformNoise1.state[2],uniformNoise1.state[2],$PRE.uniformNoise1.state[3],uniformNoise1.state[3],$PRE.uniformNoise1.state[4],uniformNoise1.state[4],$PRE.uniformNoise1.r,uniformNoise1.r,$PRE.uniformNoise1.r_raw,uniformNoise1.r_raw,globalSeed.id_impure,uniformNoise1.localSeed,uniformNoise1.actualGlobalSeed,uniformNoise2.localSeed,uniformNoise2.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 24 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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 7.823e-05/0.3524, allocations: 124.5 kB / 444.7 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/0.3524, allocations: 19.31 kB / 444.7 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.11e-05/0.3524, allocations: 10.52 kB / 444.8 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.3524, allocations: 3.844 kB / 444.8 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.3524, allocations: 4 kB / 444.8 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3524, allocations: 0.75 kB / 444.8 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.3526, allocations: 184 kB / 444.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3526, allocations: 7.938 kB / 445 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.982e-05/0.3527, allocations: 17.42 kB / 445 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.3527, allocations: 0 / 445 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.3527, allocations: 5.156 kB / 445 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3527, allocations: 0.8438 kB / 445 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3527, allocations: 3.906 kB / 445 MB, free: 8.316 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001736/0.3529, allocations: 177.2 kB / 445.2 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.276e-05/0.3529, allocations: 90.08 kB / 445.2 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.038e-05/0.353, allocations: 12.78 kB / 445.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.631e-05/0.353, allocations: 6.031 kB / 445.3 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.464e-05/0.3531, allocations: 24.78 kB / 445.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.3531, allocations: 4.547 kB / 445.3 MB, free: 8.105 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.867e-05/0.3532, allocations: 116.5 kB / 445.4 MB, free: 8.031 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003041/0.3535, allocations: 67.84 kB / 445.5 MB, free: 8.012 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4],uniformNoise1.r,uniformNoise1.r_raw,$whenCondition1,uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise2.r,uniformNoise2.r_raw) * Number of discrete states: 8 (uniformNoise2.state[1],uniformNoise2.state[2],uniformNoise2.state[3],uniformNoise2.state[4],uniformNoise1.state[1],uniformNoise1.state[2],uniformNoise1.state[3],uniformNoise1.state[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0004117/0.3539, allocations: 225.7 kB / 445.7 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002906/0.3542, allocations: 214.6 kB / 445.9 MB, free: 7.797 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3542, allocations: 0 / 445.9 MB, free: 7.797 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.2e-05/0.3543, allocations: 58.5 kB / 446 MB, free: 7.789 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.3544, allocations: 11.75 kB / 446 MB, free: 7.785 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003267/0.3548, allocations: 165.1 kB / 446.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.355, allocations: 0.7322 MB / 446.9 MB, free: 6.988 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.355, allocations: 0 / 446.9 MB, free: 6.988 MB / 314.7 MB Notification: Performance of Templates: time 0.004732/0.3597, allocations: 2.363 MB / 449.2 MB, free: 6.309 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/UniformNoise/UniformNoise.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.NoiseExamples.UniformNoise.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches