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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009828/0.0009828, allocations: 175.4 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007165/0.0007165, allocations: 85.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3018/0.3018, allocations: 43.56 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.000325, allocations: 16 kB / 432.1 MB, free: 5.715 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09907/0.09941, allocations: 58.84 MB / 490.9 MB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006382/0.1001, allocations: 276.2 kB / 491.2 MB, free: 10.52 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007294/0.1008, allocations: 414.6 kB / 491.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.521e-05/0.1009, allocations: 0 / 491.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.803e-05/0.101, allocations: 0 / 491.6 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.1011, allocations: 15.86 kB / 491.6 MB, free: 10.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004716/0.1016, allocations: 135.8 kB / 491.7 MB, free: 9.961 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.1017, allocations: 63.86 kB / 491.8 MB, free: 9.898 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.402e-05/0.1018, allocations: 7.984 kB / 491.8 MB, free: 9.891 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.419e-05/0.1018, allocations: 43.89 kB / 491.9 MB, free: 9.848 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.462e-05/0.1019, allocations: 19.91 kB / 491.9 MB, free: 9.828 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.1019, allocations: 7.938 kB / 491.9 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.1021, allocations: 83.91 kB / 492 MB, free: 9.738 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.74e-05/0.1021, allocations: 27.95 kB / 492 MB, free: 9.711 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.392e-05/0.1022, allocations: 49.56 kB / 492 MB, free: 9.656 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.1024, allocations: 87.86 kB / 492.1 MB, free: 9.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.1024, allocations: 0 / 492.1 MB, free: 9.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1024, allocations: 0 / 492.1 MB, free: 9.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.1024, allocations: 0 / 492.1 MB, free: 9.57 MB / 378.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.000454/0.1028, allocations: 381.1 kB / 492.5 MB, free: 9.141 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1029, allocations: 12.03 kB / 492.5 MB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.648e-05/0.103, allocations: 38.75 kB / 492.5 MB, free: 9.082 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.103, allocations: 8.844 kB / 492.6 MB, free: 9.074 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.1032, allocations: 184.6 kB / 492.7 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.357e-05/0.1032, allocations: 8.375 kB / 492.7 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.291e-05/0.1032, allocations: 384 / 492.7 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001837/0.1034, allocations: 86.2 kB / 492.8 MB, free: 8.758 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1034, allocations: 3.938 kB / 492.8 MB, free: 8.754 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.1034, allocations: 7.922 kB / 492.8 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.1035, allocations: 4 kB / 492.8 MB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.824e-05/0.1035, allocations: 19.98 kB / 492.9 MB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.1037, allocations: 173.5 kB / 493 MB, free: 8.504 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.422e-05/0.1038, allocations: 46.56 kB / 493.1 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.169e-05/0.1038, allocations: 24.91 kB / 493.1 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.1038, allocations: 0 / 493.1 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.1041, allocations: 135.2 kB / 493.2 MB, free: 8.277 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.1041, allocations: 0 / 493.2 MB, free: 8.277 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002548/0.1043, allocations: 125.5 kB / 493.4 MB, free: 8.148 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.1044, allocations: 51.41 kB / 493.4 MB, free: 8.086 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.607e-05/0.1044, allocations: 101.8 kB / 493.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.1045, allocations: 29.7 kB / 493.5 MB, free: 7.941 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.361e-05/0.1045, allocations: 88.56 kB / 493.6 MB, free: 7.852 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.1045, allocations: 23.7 kB / 493.6 MB, free: 7.828 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/0.1046, allocations: 4 kB / 493.6 MB, free: 7.824 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.129e-05/0.1047, allocations: 322.8 kB / 494 MB, free: 7.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.346e-05/0.1047, allocations: 19.98 kB / 494 MB, free: 7.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.716e-05/0.1048, allocations: 82.5 kB / 494.1 MB, free: 7.379 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.105, allocations: 144.4 kB / 494.2 MB, free: 7.207 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.105, allocations: 4 kB / 494.2 MB, free: 7.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001962/0.1052, allocations: 167 kB / 494.4 MB, free: 7.027 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.1052, allocations: 33.7 kB / 494.4 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1052, allocations: 0 / 494.4 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1052, allocations: 4 kB / 494.4 MB, free: 6.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.1053, allocations: 19.92 kB / 494.4 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1054, allocations: 4 kB / 494.4 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.626e-05/0.1054, allocations: 7.938 kB / 494.4 MB, free: 6.953 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1054, allocations: 8.219 kB / 494.4 MB, free: 6.945 MB / 378.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.0001255/0.1056, allocations: 133.7 kB / 494.6 MB, free: 6.805 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.109e-05/0.1056, allocations: 11.84 kB / 494.6 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.838e-05/0.1056, allocations: 7.969 kB / 494.6 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1056, allocations: 0 / 494.6 MB, free: 6.785 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1056, allocations: 4.062 kB / 494.6 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1056, allocations: 0 / 494.6 MB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.1058, allocations: 173.6 kB / 494.8 MB, free: 6.562 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1058, allocations: 4 kB / 494.8 MB, free: 6.559 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.472e-05/0.1058, allocations: 7.938 kB / 494.8 MB, free: 6.551 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.1058, allocations: 4.172 kB / 494.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.1058, allocations: 0 / 494.8 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1059, allocations: 4 kB / 494.8 MB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1059, allocations: 0 / 494.8 MB, free: 6.543 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001778/0.106, allocations: 136.9 kB / 494.9 MB, free: 6.391 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.751e-05/0.1061, allocations: 85.05 kB / 495 MB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.1061, allocations: 8 kB / 495 MB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.1063, allocations: 23.97 kB / 495 MB, free: 6.258 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.653e-05/0.1064, allocations: 7.984 kB / 495 MB, free: 6.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.1064, allocations: 11.94 kB / 495.1 MB, free: 6.238 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.083e-05/0.1064, allocations: 75.28 kB / 495.1 MB, free: 6.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1064, allocations: 0 / 495.1 MB, free: 6.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002555/0.1067, allocations: 43.98 kB / 495.2 MB, free: 6.121 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006435/0.1074, allocations: 0.7635 MB / 495.9 MB, free: 5.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001718/0.1075, allocations: 127.2 kB / 496.1 MB, free: 5.203 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1076, allocations: 0 / 496.1 MB, free: 5.203 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.293e-05/0.1076, allocations: 27.98 kB / 496.1 MB, free: 5.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.1078, allocations: 11.61 kB / 496.1 MB, free: 5.168 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007425/0.1085, allocations: 0.5396 MB / 496.6 MB, free: 4.555 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002062/0.1087, allocations: 0.6848 MB / 497.3 MB, free: 3.844 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.1088, allocations: 23.42 kB / 497.3 MB, free: 3.824 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.1088, allocations: 0 / 497.3 MB, free: 3.824 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.305/3.414, allocations: 1.804 MB / 499.2 MB, free: 2.02 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Math_Random_TestRandomIntegers.fmu > 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) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,id,lowBound,n,nrSigma,samples,time,y