Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001803/0.001803, allocations: 195.6 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 244.1 MB, free: 8.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007847/0.0007848, allocations: 112.4 kB / 296.2 MB, free: 6.867 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2868/0.2868, allocations: 44.82 MB / 393 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002606, allocations: 8 kB / 465.9 MB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2859, allocations: 62.95 MB / 0.5165 GB, free: 36.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09683/0.3828, allocations: 86.82 MB / 0.6012 GB, free: 2.582 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00019/0.383, allocations: 63.97 kB / 0.6013 GB, free: 2.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009296/0.3923, allocations: 3.34 MB / 0.6046 GB, free: 15.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3923, allocations: 0 / 0.6046 GB, free: 15.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.3924, allocations: 4 kB / 0.6046 GB, free: 15.17 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003537/0.3927, allocations: 397 kB / 0.6049 GB, free: 14.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.3928, allocations: 8.875 kB / 0.605 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.224e-05/0.3928, allocations: 8.844 kB / 0.605 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001804/0.393, allocations: 184.3 kB / 0.6051 GB, free: 14.49 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.393, allocations: 8.359 kB / 0.6052 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.393, allocations: 8.375 kB / 0.6052 GB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.3932, allocations: 86.19 kB / 0.6052 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.3932, allocations: 192 / 0.6052 GB, free: 14.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.3933, allocations: 7.938 kB / 0.6052 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.3933, allocations: 0 / 0.6052 GB, free: 14.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.014e-05/0.3933, allocations: 27.97 kB / 0.6053 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001596/0.3935, allocations: 165.6 kB / 0.6054 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.525e-05/0.3936, allocations: 58.48 kB / 0.6055 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.125e-05/0.3937, allocations: 20.84 kB / 0.6055 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.375e-05/0.3937, allocations: 4 kB / 0.6055 GB, free: 14.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000201/0.3939, allocations: 127.3 kB / 0.6056 GB, free: 13.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.3939, allocations: 3.938 kB / 0.6056 GB, free: 13.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002573/0.3942, allocations: 137.4 kB / 0.6058 GB, free: 13.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.3942, allocations: 55.41 kB / 0.6058 GB, free: 13.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.415e-05/0.3943, allocations: 97.84 kB / 0.6059 GB, free: 13.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.3943, allocations: 37.7 kB / 0.606 GB, free: 13.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.951e-05/0.3943, allocations: 80.14 kB / 0.606 GB, free: 13.47 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.3944, allocations: 24.08 kB / 0.6061 GB, free: 13.45 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-06/0.3944, allocations: 4 kB / 0.6061 GB, free: 13.44 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.98e-05/0.3945, allocations: 314.8 kB / 0.6064 GB, free: 13.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.319e-05/0.3945, allocations: 23.98 kB / 0.6064 GB, free: 13.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.397e-05/0.3946, allocations: 80.7 kB / 0.6065 GB, free: 13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000166/0.3948, allocations: 148.4 kB / 0.6066 GB, free: 12.82 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3948, allocations: 0 / 0.6066 GB, free: 12.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002135/0.395, allocations: 155.1 kB / 0.6067 GB, free: 12.66 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.395, allocations: 40.3 kB / 0.6068 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3951, allocations: 0 / 0.6068 GB, free: 12.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.3951, allocations: 4 kB / 0.6068 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.188e-05/0.3952, allocations: 28.14 kB / 0.6068 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.3952, allocations: 4 kB / 0.6068 GB, free: 12.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.151e-05/0.3952, allocations: 7.938 kB / 0.6068 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.3952, allocations: 4 kB / 0.6068 GB, free: 12.57 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 0.000111/0.3954, allocations: 130 kB / 0.607 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.178e-05/0.3954, allocations: 11.84 kB / 0.607 GB, free: 12.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.981e-05/0.3954, allocations: 19.89 kB / 0.607 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3954, allocations: 4 kB / 0.607 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.3954, allocations: 0 / 0.607 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3955, allocations: 3.984 kB / 0.607 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001259/0.3956, allocations: 169.6 kB / 0.6072 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3956, allocations: 3.984 kB / 0.6072 GB, free: 12.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.365e-05/0.3956, allocations: 8.062 kB / 0.6072 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.3956, allocations: 3.938 kB / 0.6072 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.3957, allocations: 4 kB / 0.6072 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3957, allocations: 4 kB / 0.6072 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3957, allocations: 0 / 0.6072 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001939/0.3959, allocations: 140.9 kB / 0.6073 GB, free: 12 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.049e-05/0.3959, allocations: 85.05 kB / 0.6074 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.3959, allocations: 0 / 0.6074 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.3961, allocations: 27.91 kB / 0.6074 GB, free: 11.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.254e-05/0.3961, allocations: 4 kB / 0.6074 GB, free: 11.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.442e-05/0.3961, allocations: 15.98 kB / 0.6074 GB, free: 11.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.752e-05/0.3962, allocations: 75.28 kB / 0.6075 GB, free: 11.78 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3962, allocations: 0 / 0.6075 GB, free: 11.78 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002569/0.3964, allocations: 59.98 kB / 0.6076 GB, free: 11.72 MB / 426.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: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0003501/0.3968, allocations: 206.9 kB / 0.6078 GB, free: 11.53 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001725/0.397, allocations: 127.2 kB / 0.6079 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.397, allocations: 0 / 0.6079 GB, free: 11.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.808e-05/0.3971, allocations: 35.92 kB / 0.6079 GB, free: 11.36 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.3972, allocations: 11.98 kB / 0.6079 GB, free: 11.35 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003322/0.3975, allocations: 176.9 kB / 0.6081 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.3978, allocations: 0.6887 MB / 0.6088 GB, free: 10.43 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.39e-05/0.3978, allocations: 11.44 kB / 0.6088 GB, free: 10.41 MB / 426.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3978, allocations: 0 / 0.6088 GB, free: 10.41 MB / 426.7 MB Notification: Performance of Templates: time 0.003226/0.401, allocations: 1.946 MB / 0.6107 GB, free: 8.473 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches