Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_3.2.3_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_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002569/0.00257, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.146/2.146, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001104, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3212/0.3212, allocations: 43.5 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.076e-05, allocations: 4 kB / 425.3 MB, free: 23.37 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 58.85 MB / 484.1 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4642/0.5762, allocations: 84.71 MB / 0.5555 GB, free: 2.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.5765, allocations: 63.56 kB / 0.5556 GB, free: 2.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01461/0.5911, allocations: 3.303 MB / 0.5588 GB, free: 32 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5912, allocations: 8 kB / 0.5588 GB, free: 24 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.5912, allocations: 0 / 0.5588 GB, free: 24 kB / 362.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.0005137/0.5917, allocations: 382.8 kB / 0.5592 GB, free: 15.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.5918, allocations: 12.03 kB / 0.5592 GB, free: 15.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.549e-05/0.5919, allocations: 12.89 kB / 0.5592 GB, free: 15.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.5921, allocations: 186.9 kB / 0.5594 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.5922, allocations: 4 kB / 0.5594 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.5922, allocations: 3.438 kB / 0.5594 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.5925, allocations: 87.95 kB / 0.5595 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.5925, allocations: 3.938 kB / 0.5595 GB, free: 15.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.079e-05/0.5925, allocations: 11.11 kB / 0.5595 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.269e-06/0.5926, allocations: 0 / 0.5595 GB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.131e-05/0.5927, allocations: 19.17 kB / 0.5595 GB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002185/0.5929, allocations: 168.7 kB / 0.5597 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.593, allocations: 50.31 kB / 0.5597 GB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.586e-05/0.5931, allocations: 20.11 kB / 0.5597 GB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.5932, allocations: 7.438 kB / 0.5597 GB, free: 14.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003191/0.5935, allocations: 128.1 kB / 0.5599 GB, free: 14.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.705e-06/0.5935, allocations: 0 / 0.5599 GB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003362/0.5938, allocations: 108.6 kB / 0.56 GB, free: 14.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/0.5939, allocations: 63.39 kB / 0.56 GB, free: 14.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.894e-05/0.594, allocations: 96.53 kB / 0.5601 GB, free: 14.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.594, allocations: 25.7 kB / 0.5601 GB, free: 14.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.5941, allocations: 158.7 kB / 0.5603 GB, free: 14.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.728e-05/0.5942, allocations: 31.58 kB / 0.5603 GB, free: 14.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.005e-06/0.5942, allocations: 0 / 0.5603 GB, free: 14.36 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5943, allocations: 322.3 kB / 0.5606 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.741e-05/0.5944, allocations: 19.38 kB / 0.5606 GB, free: 14.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.5945, allocations: 80.11 kB / 0.5607 GB, free: 13.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.5947, allocations: 62.5 kB / 0.5608 GB, free: 13.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.5947, allocations: 0 / 0.5608 GB, free: 13.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003177/0.595, allocations: 161.6 kB / 0.5609 GB, free: 13.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.5951, allocations: 33.7 kB / 0.561 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.5951, allocations: 0 / 0.561 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.051e-05/0.5951, allocations: 4 kB / 0.561 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.5953, allocations: 16.2 kB / 0.561 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.5953, allocations: 11.94 kB / 0.561 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.5954, allocations: 7.938 kB / 0.561 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.5955, allocations: 4 kB / 0.561 GB, free: 13.64 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) 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 () * 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.0001665/0.5956, allocations: 125.3 kB / 0.5611 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.792e-05/0.5957, allocations: 15.7 kB / 0.5611 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.047e-05/0.5957, allocations: 4.094 kB / 0.5611 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.5958, allocations: 0 / 0.5611 GB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5958, allocations: 4 kB / 0.5612 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.5958, allocations: 4 kB / 0.5612 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.596, allocations: 177.3 kB / 0.5613 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.596, allocations: 0 / 0.5613 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.07e-05/0.5961, allocations: 7.938 kB / 0.5613 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.224e-06/0.5961, allocations: 3.984 kB / 0.5613 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.5961, allocations: 4 kB / 0.5613 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.5961, allocations: 0 / 0.5613 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5961, allocations: 0 / 0.5613 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003006/0.5965, allocations: 139.4 kB / 0.5615 GB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.467e-05/0.5965, allocations: 85.25 kB / 0.5616 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.385e-05/0.5966, allocations: 3.984 kB / 0.5616 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.5969, allocations: 27.86 kB / 0.5616 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.626e-05/0.5969, allocations: 7.984 kB / 0.5616 GB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.5969, allocations: 4 kB / 0.5616 GB, free: 12.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.053e-05/0.597, allocations: 83.09 kB / 0.5617 GB, free: 12.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.597, allocations: 0 / 0.5617 GB, free: 12.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004296/0.5974, allocations: 63.55 kB / 0.5617 GB, free: 12.84 MB / 378.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) * 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.0005384/0.598, allocations: 192.1 kB / 0.5619 GB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002736/0.5983, allocations: 138.4 kB / 0.5621 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5983, allocations: 0 / 0.5621 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.166e-05/0.5984, allocations: 35.61 kB / 0.5621 GB, free: 12.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.5985, allocations: 6.578 kB / 0.5621 GB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005019/0.5991, allocations: 122.3 kB / 0.5622 GB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.5994, allocations: 0.6848 MB / 0.5629 GB, free: 11.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.143e-05/0.5995, allocations: 15.88 kB / 0.5629 GB, free: 11.64 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5995, allocations: 4 kB / 0.5629 GB, free: 11.63 MB / 378.7 MB Notification: Performance of Templates: time 0.005655/0.6052, allocations: 2.025 MB / 0.5649 GB, free: 9.617 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches