Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.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.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator") translateModel(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.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 3.2.3+maint.om/package.mo): time 0.00248/0.00248, allocations: 186.7 kB / 8.152 MB, free: 0.8438 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.747/1.747, allocations: 205.2 MB / 213.7 MB, free: 8.574 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001258/0.001257, allocations: 98.02 kB / 261.8 MB, free: 5.141 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 1.101e-05/1.111e-05, allocations: 4 kB / 314.3 MB, free: 2.422 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 47.56 MB / 361.8 MB, free: 2.742 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2882/0.4016, allocations: 74.46 MB / 436.3 MB, free: 13.23 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.4019, allocations: 70.55 kB / 436.4 MB, free: 13.2 MB / 322.8 MB Notification: Performance of FrontEnd: time 0.007662/0.4096, allocations: 1.663 MB / 438 MB, free: 11.85 MB / 322.8 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.4096, allocations: 0 / 438 MB, free: 11.85 MB / 322.8 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.0003479/0.41, allocations: 340.9 kB / 438.4 MB, free: 11.48 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.41, allocations: 13.28 kB / 438.4 MB, free: 11.46 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.4101, allocations: 0 / 438.4 MB, free: 11.46 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.4102, allocations: 166.5 kB / 438.5 MB, free: 11.27 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.4103, allocations: 6.969 kB / 438.5 MB, free: 11.26 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4103, allocations: 3.938 kB / 438.5 MB, free: 11.26 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.282e-05/0.4103, allocations: 8.109 kB / 438.6 MB, free: 11.25 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.591e-05/0.4104, allocations: 36.52 kB / 438.6 MB, free: 11.21 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4104, allocations: 0 / 438.6 MB, free: 11.21 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.4105, allocations: 5.359 kB / 438.6 MB, free: 11.21 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.4105, allocations: 0 / 438.6 MB, free: 11.21 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002258/0.4107, allocations: 212.9 kB / 438.8 MB, free: 10.97 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 5.759e-05/0.4108, allocations: 28.36 kB / 438.8 MB, free: 10.94 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.253e-05/0.4108, allocations: 12.36 kB / 438.8 MB, free: 10.93 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.281e-05/0.4108, allocations: 7.906 kB / 438.9 MB, free: 10.92 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.088e-05/0.4109, allocations: 45.47 kB / 438.9 MB, free: 10.86 MB / 322.8 MB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.4109, allocations: 0 / 438.9 MB, free: 10.86 MB / 322.8 MB Notification: Performance of matching and sorting (n=3): time 0.00017/0.4111, allocations: 41.19 kB / 438.9 MB, free: 10.82 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.646e-05/0.4112, allocations: 55.41 kB / 439 MB, free: 10.75 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.091e-05/0.4112, allocations: 94.69 kB / 439.1 MB, free: 10.66 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.4113, allocations: 25.7 kB / 439.1 MB, free: 10.63 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.4113, allocations: 158 kB / 439.3 MB, free: 10.48 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.4113, allocations: 4 kB / 439.3 MB, free: 10.47 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.4114, allocations: 3.938 kB / 439.3 MB, free: 10.47 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 6.624e-05/0.4114, allocations: 320 kB / 439.6 MB, free: 10.15 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.355e-05/0.4115, allocations: 11.31 kB / 439.6 MB, free: 10.14 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.368e-05/0.4115, allocations: 21.03 kB / 439.6 MB, free: 10.12 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.675e-05/0.4116, allocations: 5.406 kB / 439.6 MB, free: 10.11 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4116, allocations: 0 / 439.6 MB, free: 10.11 MB / 322.8 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001634/0.4118, allocations: 52.06 kB / 439.7 MB, free: 10.06 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.4118, allocations: 7.984 kB / 439.7 MB, free: 10.05 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.4118, allocations: 7.812 kB / 439.7 MB, free: 10.05 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.4119, allocations: 0 / 439.7 MB, free: 10.05 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.639e-05/0.412, allocations: 7.938 kB / 439.7 MB, free: 10.04 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.412, allocations: 8.031 kB / 439.7 MB, free: 10.04 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.446e-05/0.412, allocations: 3.906 kB / 439.7 MB, free: 10.03 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-06/0.412, allocations: 0 / 439.7 MB, free: 10.03 MB / 322.8 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 5.638e-05/0.4121, allocations: 34.67 kB / 439.7 MB, free: 9.992 MB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.4121, allocations: 0 / 439.7 MB, free: 9.992 MB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.192e-05/0.4122, allocations: 11.89 kB / 439.8 MB, free: 9.98 MB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.4122, allocations: 0 / 439.8 MB, free: 9.98 MB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4122, allocations: 4 kB / 439.8 MB, free: 9.977 MB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.4122, allocations: 1.359 kB / 439.8 MB, free: 9.977 MB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.4124, allocations: 258.4 kB / 440 MB, free: 9.688 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.4125, allocations: 1.312 kB / 440 MB, free: 9.688 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.866e-05/0.4125, allocations: 4 kB / 440 MB, free: 9.684 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4125, allocations: 3.906 kB / 440 MB, free: 9.68 MB / 322.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.4125, allocations: 0 / 440 MB, free: 9.68 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.4125, allocations: 0 / 440 MB, free: 9.68 MB / 322.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.4125, allocations: 0 / 440 MB, free: 9.68 MB / 322.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001044/0.4126, allocations: 146.1 kB / 440.2 MB, free: 9.527 MB / 322.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.536e-05/0.4127, allocations: 81.11 kB / 440.2 MB, free: 9.43 MB / 322.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.4127, allocations: 3.984 kB / 440.2 MB, free: 9.426 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.704e-05/0.4128, allocations: 3.938 kB / 440.2 MB, free: 9.422 MB / 322.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.177e-05/0.4128, allocations: 2.344 kB / 440.3 MB, free: 9.422 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.4128, allocations: 4 kB / 440.3 MB, free: 9.418 MB / 322.8 MB Notification: Performance of sort global known variables: time 3.195e-05/0.4129, allocations: 83.03 kB / 440.3 MB, free: 9.34 MB / 322.8 MB Notification: Performance of remove unused functions: time 0.0003747/0.4133, allocations: 35.89 kB / 440.4 MB, free: 9.305 MB / 322.8 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.0005274/0.4138, allocations: 184.5 kB / 440.6 MB, free: 9.156 MB / 322.8 MB Notification: Performance of simCode: created initialization part: time 0.0001307/0.4139, allocations: 15.25 kB / 440.6 MB, free: 9.145 MB / 322.8 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.414, allocations: 0 / 440.6 MB, free: 9.145 MB / 322.8 MB Notification: Performance of simCode: created simulation system equations: time 3.86e-05/0.414, allocations: 12.06 kB / 440.6 MB, free: 9.133 MB / 322.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001829/0.4142, allocations: 4.594 kB / 440.6 MB, free: 9.133 MB / 322.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000272/0.4145, allocations: 94.33 kB / 440.7 MB, free: 9.02 MB / 322.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.4147, allocations: 0.6887 MB / 441.4 MB, free: 8.309 MB / 322.8 MB Notification: Performance of SimCode: time 8.51e-07/0.4147, allocations: 2.344 kB / 441.4 MB, free: 8.309 MB / 322.8 MB Notification: Performance of Templates: time 0.00413/0.4188, allocations: 1.352 MB / 442.7 MB, free: 6.988 MB / 322.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/NoiseExamples/ImpureGenerator/ImpureGenerator.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches