Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001122/0.001122, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2434/0.2434, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 76.38 kB / 417.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1337, allocations: 62.44 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002029/0.1358, allocations: 0.5385 MB / 480.7 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000905/0.1367, allocations: 449.3 kB / 481.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.208e-05/0.1368, allocations: 0 / 481.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.406e-05/0.1369, allocations: 0 / 481.1 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.137, allocations: 7.938 kB / 481.1 MB, free: 4.219 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0006687/0.1377, allocations: 167.5 kB / 481.3 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.1378, allocations: 75.86 kB / 481.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.877e-05/0.1379, allocations: 12 kB / 481.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.675e-05/0.138, allocations: 39.91 kB / 481.4 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.705e-05/0.1381, allocations: 23.89 kB / 481.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.378e-05/0.1381, allocations: 4 kB / 481.4 MB, free: 3.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002533/0.1384, allocations: 95.91 kB / 481.5 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.393e-05/0.1385, allocations: 19.95 kB / 481.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.495e-05/0.1385, allocations: 27.84 kB / 481.6 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002833/0.1388, allocations: 123.7 kB / 481.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1388, allocations: 0 / 481.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1388, allocations: 4 kB / 481.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1388, allocations: 0 / 481.7 MB, free: 3.637 MB / 350.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.0005608/0.1394, allocations: 413.1 kB / 482.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.1395, allocations: 8.031 kB / 482.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.417e-05/0.1395, allocations: 30.75 kB / 482.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.1396, allocations: 4.938 kB / 482.1 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002064/0.1398, allocations: 188.5 kB / 482.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.1398, allocations: 4.375 kB / 482.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.121e-05/0.1398, allocations: 4.359 kB / 482.3 MB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.14, allocations: 90.14 kB / 482.4 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.14, allocations: 7.938 kB / 482.4 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.1401, allocations: 4 kB / 482.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.576e-06/0.1401, allocations: 0 / 482.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.736e-05/0.1402, allocations: 27.97 kB / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.1403, allocations: 169.5 kB / 482.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.565e-05/0.1404, allocations: 42.56 kB / 482.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.729e-05/0.1405, allocations: 24.91 kB / 482.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.1405, allocations: 0 / 482.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000285/0.1408, allocations: 139.2 kB / 482.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.1408, allocations: 4 kB / 482.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003021/0.1411, allocations: 117.7 kB / 482.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.1412, allocations: 55.41 kB / 483 MB, free: 2.129 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.742e-05/0.1413, allocations: 105.8 kB / 483.1 MB, free: 2.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.1413, allocations: 33.7 kB / 483.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.665e-05/0.1413, allocations: 80.14 kB / 483.2 MB, free: 1.895 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.328e-05/0.1414, allocations: 23.66 kB / 483.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.1414, allocations: 33.7 kB / 483.3 MB, free: 1.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1416, allocations: 318.8 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.838e-05/0.1416, allocations: 19.98 kB / 483.6 MB, free: 1.492 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.758e-05/0.1417, allocations: 82.78 kB / 483.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.1419, allocations: 144.4 kB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1419, allocations: 0 / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002301/0.1421, allocations: 163.1 kB / 484 MB, free: 1.043 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.1422, allocations: 33.69 kB / 484 MB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1422, allocations: 8.219 kB / 484 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1422, allocations: 4.062 kB / 484 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.1423, allocations: 19.94 kB / 484 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.695e-06/0.1424, allocations: 4.266 kB / 484 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.227e-05/0.1424, allocations: 7.906 kB / 484.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.1424, allocations: 12 kB / 484.1 MB, free: 0.9492 MB / 350.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.0001549/0.1426, allocations: 129.7 kB / 484.2 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.1426, allocations: 15.92 kB / 484.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.1427, allocations: 7.969 kB / 484.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1427, allocations: 0 / 484.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1427, allocations: 0 / 484.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1427, allocations: 0 / 484.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001703/0.1429, allocations: 185.7 kB / 484.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1429, allocations: 0 / 484.4 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.102e-05/0.1429, allocations: 7.938 kB / 484.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1429, allocations: 3.984 kB / 484.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.143, allocations: 0 / 484.4 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.143, allocations: 3.984 kB / 484.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.143, allocations: 8 kB / 484.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.1432, allocations: 121 kB / 484.5 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.26e-05/0.1433, allocations: 92.94 kB / 484.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.006e-05/0.1433, allocations: 0 / 484.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002119/0.1435, allocations: 23.97 kB / 484.7 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.1435, allocations: 0 / 484.7 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.1436, allocations: 7.984 kB / 484.7 MB, free: 264 kB / 350.1 MB Notification: Performance of sorting global known variables: time 5.898e-05/0.1436, allocations: 87.28 kB / 484.7 MB, free: 176 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1436, allocations: 0 / 484.7 MB, free: 176 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.144, allocations: 43.98 kB / 484.8 MB, free: 132 kB / 350.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.0008203/0.1448, allocations: 0.7398 MB / 485.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002232/0.145, allocations: 135.2 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.145, allocations: 4 kB / 485.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.972e-05/0.1451, allocations: 27.92 kB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001569/0.1453, allocations: 12.38 kB / 485.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.147, allocations: 1.437 MB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003942/0.1474, allocations: 0.6846 MB / 487.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.245e-05/0.1475, allocations: 20.59 kB / 487.8 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.1475, allocations: 19.42 kB / 487.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1475, allocations: 0 / 487.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.1717, allocations: 2.957 MB / 490.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.097, allocations: 13.08 kB / 490.8 MB, free: 9.98 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches