Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 185.7 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.597/1.597, allocations: 205.4 MB / 223.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4178/0.4178, allocations: 43.57 MB / 315 MB, free: 8.797 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006476/0.0006476, allocations: 19.98 kB / 384.7 MB, free: 7.555 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.147, allocations: 58.86 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0008559/0.148, allocations: 276.3 kB / 443.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.1491, allocations: 435.1 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.879e-05/0.1491, allocations: 4 kB / 444.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.233e-05/0.1492, allocations: 7.875 kB / 444.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.1494, allocations: 4 kB / 444.3 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006225/0.15, allocations: 151.7 kB / 444.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002045/0.1502, allocations: 79.84 kB / 444.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.171e-05/0.1503, allocations: 0 / 444.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.463e-05/0.1504, allocations: 35.97 kB / 444.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.379e-05/0.1504, allocations: 27.89 kB / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.1505, allocations: 0 / 444.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.1507, allocations: 91.91 kB / 444.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.1508, allocations: 27.84 kB / 444.7 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1509, allocations: 61.59 kB / 444.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002547/0.1512, allocations: 119.8 kB / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.1512, allocations: 4 kB / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1512, allocations: 0 / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1512, allocations: 0 / 444.8 MB, free: 11.29 MB / 382.1 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.0005653/0.1518, allocations: 381.1 kB / 445.2 MB, free: 10.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1519, allocations: 11.97 kB / 445.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.452e-05/0.1519, allocations: 34.75 kB / 445.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.152, allocations: 8.844 kB / 445.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.1522, allocations: 188.6 kB / 445.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.1522, allocations: 8.359 kB / 445.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.1522, allocations: 384 / 445.5 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.1524, allocations: 94.14 kB / 445.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.1525, allocations: 3.938 kB / 445.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.199e-05/0.1525, allocations: 4 kB / 445.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.1525, allocations: 3.984 kB / 445.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.834e-05/0.1526, allocations: 23.97 kB / 445.6 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002092/0.1528, allocations: 169.6 kB / 445.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.051e-05/0.1529, allocations: 42.56 kB / 445.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.861e-05/0.153, allocations: 24.91 kB / 445.8 MB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.153, allocations: 7.938 kB / 445.8 MB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.1533, allocations: 135.2 kB / 446 MB, free: 9.984 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.1533, allocations: 0 / 446 MB, free: 9.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000321/0.1536, allocations: 121.5 kB / 446.1 MB, free: 9.859 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.1537, allocations: 59.55 kB / 446.1 MB, free: 9.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.499e-05/0.1538, allocations: 101.8 kB / 446.2 MB, free: 9.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1538, allocations: 29.7 kB / 446.3 MB, free: 9.645 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.1539, allocations: 80.14 kB / 446.3 MB, free: 9.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.059e-05/0.1539, allocations: 23.7 kB / 446.4 MB, free: 9.539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-05/0.154, allocations: 21.72 kB / 446.4 MB, free: 9.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1541, allocations: 322.8 kB / 446.7 MB, free: 9.188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.946e-05/0.1541, allocations: 23.98 kB / 446.7 MB, free: 9.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.414e-05/0.1542, allocations: 74.8 kB / 446.8 MB, free: 9.066 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.1545, allocations: 148.4 kB / 446.9 MB, free: 8.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1545, allocations: 0 / 446.9 MB, free: 8.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000275/0.1548, allocations: 163.1 kB / 447.1 MB, free: 8.719 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.5e-05/0.1548, allocations: 33.7 kB / 447.1 MB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1548, allocations: 288 / 447.1 MB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.1548, allocations: 4 kB / 447.1 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.155, allocations: 19.92 kB / 447.2 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.777e-05/0.155, allocations: 7.938 kB / 447.2 MB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.792e-05/0.1551, allocations: 15.88 kB / 447.2 MB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.1551, allocations: 4 kB / 447.2 MB, free: 8.629 MB / 382.1 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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001623/0.1553, allocations: 134 kB / 447.3 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.083e-05/0.1553, allocations: 11.84 kB / 447.3 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.398e-05/0.1553, allocations: 7.953 kB / 447.3 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1553, allocations: 4 kB / 447.3 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1553, allocations: 0 / 447.3 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1554, allocations: 0 / 447.3 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.1555, allocations: 165.7 kB / 447.5 MB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.1555, allocations: 8.062 kB / 447.5 MB, free: 8.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.1556, allocations: 11.92 kB / 447.5 MB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1556, allocations: 4 kB / 447.5 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.1556, allocations: 0 / 447.5 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.1556, allocations: 0 / 447.5 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1556, allocations: 0 / 447.5 MB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002249/0.1558, allocations: 140.9 kB / 447.7 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.106e-05/0.1559, allocations: 81.05 kB / 447.7 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.1559, allocations: 7.984 kB / 447.7 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002249/0.1562, allocations: 27.92 kB / 447.8 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.288e-05/0.1562, allocations: 3.984 kB / 447.8 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.848e-05/0.1562, allocations: 8 kB / 447.8 MB, free: 7.934 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.478e-05/0.1563, allocations: 87.44 kB / 447.9 MB, free: 7.848 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1563, allocations: 0 / 447.9 MB, free: 7.848 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002975/0.1566, allocations: 40 kB / 447.9 MB, free: 7.809 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008369/0.1574, allocations: 0.7555 MB / 448.7 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002362/0.1577, allocations: 131.2 kB / 448.8 MB, free: 6.898 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1577, allocations: 0 / 448.8 MB, free: 6.898 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.854e-05/0.1578, allocations: 31.98 kB / 448.8 MB, free: 6.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/0.1579, allocations: 7.984 kB / 448.8 MB, free: 6.859 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.1596, allocations: 1.444 MB / 450.3 MB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.16, allocations: 0.6848 MB / 451 MB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.857e-05/0.1601, allocations: 16.59 kB / 451 MB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.843e-05/0.1601, allocations: 19.42 kB / 451 MB, free: 4.539 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1601, allocations: 4 kB / 451 MB, free: 4.535 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01566/0.1758, allocations: 2.687 MB / 453.7 MB, free: 1.867 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002521/0.1761, allocations: 234.8 kB / 453.9 MB, free: 1.613 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.092, allocations: 0 / 453.9 MB, free: 1.613 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches