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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001561/0.001561, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2696/0.2696, allocations: 46.9 MB / 357.4 MB, free: 10.47 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002235/0.002235, allocations: 87.86 kB / 0.4913 GB, free: 8.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1511, allocations: 65.99 MB / 0.5557 GB, free: 6.152 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001766/0.1529, allocations: 0.5296 MB / 0.5562 GB, free: 5.617 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009668/0.1539, allocations: 448.9 kB / 0.5566 GB, free: 5.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.143e-05/0.1539, allocations: 4 kB / 0.5566 GB, free: 5.176 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 8.451e-05/0.154, allocations: 3.938 kB / 0.5566 GB, free: 5.172 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000128/0.1541, allocations: 8 kB / 0.5567 GB, free: 5.164 MB / 414.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.0005748/0.1547, allocations: 158.2 kB / 0.5568 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001743/0.1549, allocations: 95.77 kB / 0.5569 GB, free: 4.918 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.649e-05/0.1549, allocations: 4 kB / 0.5569 GB, free: 4.914 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.74e-05/0.155, allocations: 39.95 kB / 0.5569 GB, free: 4.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.553e-05/0.155, allocations: 15.92 kB / 0.557 GB, free: 4.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.137e-05/0.155, allocations: 8 kB / 0.557 GB, free: 4.852 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.1552, allocations: 111.8 kB / 0.5571 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.1553, allocations: 19.97 kB / 0.5571 GB, free: 4.723 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.1553, allocations: 27.84 kB / 0.5571 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002161/0.1556, allocations: 123.7 kB / 0.5572 GB, free: 4.574 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1556, allocations: 0 / 0.5572 GB, free: 4.574 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1556, allocations: 0 / 0.5572 GB, free: 4.574 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.1556, allocations: 0 / 0.5572 GB, free: 4.574 MB / 414.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.000615/0.1562, allocations: 412.8 kB / 0.5576 GB, free: 4.113 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1562, allocations: 12.03 kB / 0.5576 GB, free: 4.102 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.345e-05/0.1563, allocations: 38.73 kB / 0.5577 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.368e-05/0.1563, allocations: 8.891 kB / 0.5577 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002106/0.1565, allocations: 184.3 kB / 0.5579 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.1565, allocations: 4.312 kB / 0.5579 GB, free: 3.824 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.1565, allocations: 4.375 kB / 0.5579 GB, free: 3.82 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002208/0.1568, allocations: 90.19 kB / 0.558 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.1568, allocations: 7.922 kB / 0.558 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.1568, allocations: 0 / 0.558 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1568, allocations: 0 / 0.558 GB, free: 3.719 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.565e-05/0.1569, allocations: 23.98 kB / 0.558 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002056/0.1571, allocations: 169.6 kB / 0.5581 GB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.906e-05/0.1572, allocations: 50.48 kB / 0.5582 GB, free: 3.422 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.258e-05/0.1572, allocations: 12.92 kB / 0.5582 GB, free: 3.406 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.1572, allocations: 11.94 kB / 0.5582 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003011/0.1575, allocations: 131.2 kB / 0.5583 GB, free: 3.254 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.1575, allocations: 0 / 0.5583 GB, free: 3.254 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002942/0.1578, allocations: 125.5 kB / 0.5585 GB, free: 3.125 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.1579, allocations: 55.41 kB / 0.5585 GB, free: 3.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.122e-05/0.158, allocations: 101.8 kB / 0.5586 GB, free: 2.949 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.158, allocations: 25.7 kB / 0.5586 GB, free: 2.918 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.418e-05/0.158, allocations: 88.14 kB / 0.5587 GB, free: 2.828 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.034e-05/0.1581, allocations: 31.98 kB / 0.5588 GB, free: 2.797 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.903e-05/0.1581, allocations: 29.7 kB / 0.5588 GB, free: 2.762 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1583, allocations: 318.8 kB / 0.5591 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.159e-05/0.1583, allocations: 23.98 kB / 0.5591 GB, free: 2.418 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.135e-05/0.1584, allocations: 78.84 kB / 0.5592 GB, free: 2.316 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001978/0.1586, allocations: 152.3 kB / 0.5593 GB, free: 2.137 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1586, allocations: 4 kB / 0.5593 GB, free: 2.133 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000231/0.1588, allocations: 155.2 kB / 0.5595 GB, free: 1.969 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/0.1589, allocations: 33.7 kB / 0.5595 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1589, allocations: 0 / 0.5595 GB, free: 1.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1589, allocations: 4 kB / 0.5595 GB, free: 1.926 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.159, allocations: 20.14 kB / 0.5595 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.159, allocations: 8.281 kB / 0.5595 GB, free: 1.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.283e-05/0.1591, allocations: 15.89 kB / 0.5596 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.1591, allocations: 4 kB / 0.5596 GB, free: 1.879 MB / 414.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.0001548/0.1592, allocations: 135.5 kB / 0.5597 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.1593, allocations: 11.89 kB / 0.5597 GB, free: 1.727 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.1593, allocations: 3.969 kB / 0.5597 GB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1593, allocations: 4 kB / 0.5597 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1593, allocations: 4 kB / 0.5597 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1593, allocations: 0 / 0.5597 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.1595, allocations: 169.6 kB / 0.5599 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1595, allocations: 0 / 0.5599 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.1595, allocations: 11.92 kB / 0.5599 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.1595, allocations: 4 kB / 0.5599 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.1595, allocations: 0 / 0.5599 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1595, allocations: 0 / 0.5599 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1595, allocations: 0 / 0.5599 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.1598, allocations: 137 kB / 0.56 GB, free: 1.332 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.029e-05/0.1598, allocations: 85 kB / 0.5601 GB, free: 1.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.1598, allocations: 8.062 kB / 0.5601 GB, free: 1.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001895/0.16, allocations: 20.14 kB / 0.5601 GB, free: 1.203 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.1601, allocations: 7.984 kB / 0.5601 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.1601, allocations: 8 kB / 0.5601 GB, free: 1.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.413e-05/0.1601, allocations: 75.28 kB / 0.5602 GB, free: 1.113 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1601, allocations: 0 / 0.5602 GB, free: 1.113 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003016/0.1604, allocations: 51.86 kB / 0.5603 GB, free: 1.062 MB / 414.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.0008266/0.1612, allocations: 0.7513 MB / 0.561 GB, free: 308 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00023/0.1615, allocations: 131.2 kB / 0.5611 GB, free: 164 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1615, allocations: 0 / 0.5611 GB, free: 164 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.579e-05/0.1615, allocations: 27.92 kB / 0.5612 GB, free: 136 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.1617, allocations: 8 kB / 0.5612 GB, free: 128 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001512/0.1632, allocations: 1.439 MB / 0.5626 GB, free: 14.56 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.1635, allocations: 0.6807 MB / 0.5632 GB, free: 13.85 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.882e-05/0.1636, allocations: 16.59 kB / 0.5632 GB, free: 13.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.1636, allocations: 19.42 kB / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1636, allocations: 0 / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.189, allocations: 3.021 MB / 0.5662 GB, free: 10.88 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.143/8.332, allocations: 0 / 0.5662 GB, free: 10.88 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.55400135088712]