Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.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.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator") [: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.001584/0.001585, allocations: 180.5 kB / 8.134 MB, free: 2.215 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.214/1.214, allocations: 221.4 MB / 229.9 MB, free: 2.996 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.001011/0.001011, allocations: 101.1 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.035e-06/8.076e-06, allocations: 4 kB / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2047, allocations: 50.39 MB / 386.9 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07941/0.2842, allocations: 75.39 MB / 462.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002224/0.2844, allocations: 71.91 kB / 462.4 MB, free: 11.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.005004/0.2894, allocations: 1.686 MB / 464.1 MB, free: 9.672 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.2895, allocations: 0 / 464.1 MB, free: 9.672 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002496/0.2897, allocations: 335.6 kB / 464.4 MB, free: 9.301 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.2898, allocations: 8.031 kB / 464.4 MB, free: 9.293 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.2898, allocations: 7.891 kB / 464.4 MB, free: 9.285 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.2899, allocations: 167.6 kB / 464.6 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.2899, allocations: 2.281 kB / 464.6 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.13e-05/0.29, allocations: 0 / 464.6 MB, free: 9.082 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.494e-05/0.29, allocations: 7.938 kB / 464.6 MB, free: 9.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.375e-05/0.2901, allocations: 34.28 kB / 464.6 MB, free: 9.035 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.2901, allocations: 5.312 kB / 464.6 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.645e-06/0.2901, allocations: 0 / 464.6 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-06/0.2901, allocations: 0 / 464.6 MB, free: 9.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002056/0.2903, allocations: 211.3 kB / 464.8 MB, free: 8.789 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.503e-05/0.2904, allocations: 27.45 kB / 464.8 MB, free: 8.754 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.31e-05/0.2904, allocations: 12.86 kB / 464.9 MB, free: 8.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.444e-06/0.2904, allocations: 7.984 kB / 464.9 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.2905, allocations: 48.27 kB / 464.9 MB, free: 8.672 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.2905, allocations: 0 / 464.9 MB, free: 8.672 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001128/0.2906, allocations: 49.67 kB / 465 MB, free: 8.617 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.56e-05/0.2906, allocations: 51.41 kB / 465 MB, free: 8.555 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.062e-05/0.2907, allocations: 102.4 kB / 465.1 MB, free: 8.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.2907, allocations: 25.7 kB / 465.1 MB, free: 8.418 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.786e-05/0.2908, allocations: 84.14 kB / 465.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.381e-05/0.2908, allocations: 11.84 kB / 465.2 MB, free: 8.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-06/0.2908, allocations: 0 / 465.2 MB, free: 8.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.053e-05/0.2909, allocations: 318.8 kB / 465.5 MB, free: 8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.552e-05/0.2909, allocations: 8.594 kB / 465.6 MB, free: 7.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.223e-05/0.2909, allocations: 21.7 kB / 465.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.828e-05/0.291, allocations: 8 kB / 465.6 MB, free: 7.957 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.291, allocations: 4 kB / 465.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.965e-05/0.2911, allocations: 49.69 kB / 465.6 MB, free: 7.898 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.2911, allocations: 4 kB / 465.6 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.788e-06/0.2911, allocations: 0 / 465.6 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.049e-05/0.2911, allocations: 4.562 kB / 465.6 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.744e-05/0.2912, allocations: 11.92 kB / 465.7 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/0.2912, allocations: 0 / 465.7 MB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.903e-05/0.2912, allocations: 7.906 kB / 465.7 MB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.2912, allocations: 0.9375 kB / 465.7 MB, free: 7.871 MB / 346.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: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * 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 6.372e-05/0.2913, allocations: 109.9 kB / 465.8 MB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-06/0.2913, allocations: 7.906 kB / 465.8 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.2913, allocations: 4 kB / 465.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.2914, allocations: 0 / 465.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2914, allocations: 0 / 465.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2914, allocations: 0 / 465.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001752/0.2915, allocations: 259.1 kB / 466 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2916, allocations: 3.938 kB / 466 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.523e-05/0.2916, allocations: 13.23 kB / 466 MB, free: 7.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.2916, allocations: 4 kB / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.2916, allocations: 0 / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2916, allocations: 0 / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2916, allocations: 0 / 466.1 MB, free: 7.426 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.913e-05/0.2917, allocations: 139.5 kB / 466.2 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.2918, allocations: 77.11 kB / 466.3 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.2918, allocations: 4 kB / 466.3 MB, free: 7.176 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.876e-05/0.2918, allocations: 4 kB / 466.3 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.829e-05/0.2919, allocations: 12.84 kB / 466.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.2919, allocations: 3.984 kB / 466.3 MB, free: 7.156 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.169e-05/0.2919, allocations: 79.28 kB / 466.4 MB, free: 7.078 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002665/0.2922, allocations: 36 kB / 466.4 MB, free: 7.043 MB / 346.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: 2 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0003428/0.2925, allocations: 191.8 kB / 466.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.788e-05/0.2926, allocations: 19.98 kB / 466.6 MB, free: 6.859 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.2926, allocations: 0 / 466.6 MB, free: 6.859 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.08e-05/0.2926, allocations: 8 kB / 466.6 MB, free: 6.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001139/0.2928, allocations: 4 kB / 466.6 MB, free: 6.848 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.2929, allocations: 59.86 kB / 466.7 MB, free: 6.766 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/0.2932, allocations: 0.6955 MB / 467.4 MB, free: 6.047 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2932, allocations: 0 / 467.4 MB, free: 6.047 MB / 346.7 MB Notification: Performance of Templates: time 0.002957/0.2961, allocations: 1.133 MB / 468.5 MB, free: 4.934 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Noise/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches