Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002156/0.002156, allocations: 212.3 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.507/1.507, allocations: 230.6 MB / 257.5 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2622/0.2622, allocations: 44.91 MB / 358.8 MB, free: 6.367 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002207/0.002207, allocations: 71.89 kB / 0.4931 GB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3514, allocations: 65.47 MB / 0.557 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002091/0.3535, allocations: 0.5368 MB / 0.5575 GB, free: 7.117 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.3545, allocations: 454.5 kB / 0.558 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.563e-05/0.3546, allocations: 0 / 0.558 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.761e-05/0.3547, allocations: 0 / 0.558 GB, free: 6.781 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.3548, allocations: 3.938 kB / 0.558 GB, free: 6.777 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.0007676/0.3556, allocations: 183 kB / 0.5582 GB, free: 6.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.3558, allocations: 87.78 kB / 0.5582 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.454e-05/0.3558, allocations: 4 kB / 0.5582 GB, free: 6.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.411e-05/0.3559, allocations: 39.95 kB / 0.5583 GB, free: 6.473 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.371e-05/0.3559, allocations: 19.92 kB / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.3559, allocations: 0 / 0.5583 GB, free: 6.453 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000272/0.3562, allocations: 131.8 kB / 0.5584 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.855e-05/0.3563, allocations: 27.89 kB / 0.5585 GB, free: 6.297 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.17e-05/0.3563, allocations: 27.86 kB / 0.5585 GB, free: 6.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002355/0.3566, allocations: 137.5 kB / 0.5586 GB, free: 6.141 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3566, allocations: 0 / 0.5586 GB, free: 6.141 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3566, allocations: 4 kB / 0.5586 GB, free: 6.137 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.3566, allocations: 0 / 0.5586 GB, free: 6.137 MB / 398.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.0005459/0.3571, allocations: 335.7 kB / 0.5589 GB, free: 5.77 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3572, allocations: 11.97 kB / 0.559 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.735e-05/0.3572, allocations: 38.75 kB / 0.559 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.379e-05/0.3573, allocations: 4.891 kB / 0.559 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.3575, allocations: 122.5 kB / 0.5591 GB, free: 5.562 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.3575, allocations: 4.375 kB / 0.5591 GB, free: 5.559 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.3575, allocations: 4.375 kB / 0.5591 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002066/0.3577, allocations: 98.11 kB / 0.5592 GB, free: 5.453 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.3577, allocations: 3.938 kB / 0.5592 GB, free: 5.449 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.3577, allocations: 4 kB / 0.5592 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.3577, allocations: 0 / 0.5592 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.78e-05/0.3578, allocations: 23.97 kB / 0.5592 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001947/0.358, allocations: 136.7 kB / 0.5594 GB, free: 5.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.57e-05/0.3581, allocations: 42.56 kB / 0.5594 GB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.941e-05/0.3581, allocations: 28.84 kB / 0.5594 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3582, allocations: 0 / 0.5594 GB, free: 5.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002918/0.3584, allocations: 127.3 kB / 0.5596 GB, free: 5.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.3585, allocations: 4 kB / 0.5596 GB, free: 5.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003108/0.3588, allocations: 129.5 kB / 0.5597 GB, free: 4.891 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.3588, allocations: 55.56 kB / 0.5597 GB, free: 4.824 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.881e-05/0.3589, allocations: 101.8 kB / 0.5598 GB, free: 4.715 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.3589, allocations: 37.69 kB / 0.5599 GB, free: 4.672 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.294e-05/0.359, allocations: 80.14 kB / 0.56 GB, free: 4.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.545e-05/0.359, allocations: 19.86 kB / 0.56 GB, free: 4.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.731e-05/0.3591, allocations: 29.7 kB / 0.56 GB, free: 4.535 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3592, allocations: 326.8 kB / 0.5603 GB, free: 4.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.19e-05/0.3593, allocations: 19.98 kB / 0.5603 GB, free: 4.188 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.061e-05/0.3594, allocations: 78.73 kB / 0.5604 GB, free: 4.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.3596, allocations: 152.4 kB / 0.5605 GB, free: 3.906 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3596, allocations: 0 / 0.5605 GB, free: 3.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002412/0.3598, allocations: 159.2 kB / 0.5607 GB, free: 3.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.3599, allocations: 36.36 kB / 0.5607 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3599, allocations: 8.266 kB / 0.5607 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.3599, allocations: 0 / 0.5607 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.36, allocations: 15.94 kB / 0.5608 GB, free: 3.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.36, allocations: 8.078 kB / 0.5608 GB, free: 3.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.369e-05/0.3601, allocations: 15.89 kB / 0.5608 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.3601, allocations: 15.97 kB / 0.5608 GB, free: 3.637 MB / 398.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.0001684/0.3603, allocations: 129.9 kB / 0.5609 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.3603, allocations: 11.89 kB / 0.5609 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.939e-05/0.3603, allocations: 16.05 kB / 0.5609 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.3603, allocations: 0 / 0.5609 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3603, allocations: 0 / 0.5609 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3603, allocations: 0 / 0.5609 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001424/0.3605, allocations: 136.7 kB / 0.5611 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3605, allocations: 3.984 kB / 0.5611 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.578e-05/0.3605, allocations: 15.94 kB / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.3605, allocations: 0 / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.3605, allocations: 0 / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3605, allocations: 0 / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3605, allocations: 0 / 0.5611 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002193/0.3608, allocations: 133 kB / 0.5612 GB, free: 3.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.3608, allocations: 7.891 kB / 0.5612 GB, free: 3.117 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.262e-05/0.3608, allocations: 7.984 kB / 0.5612 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.361, allocations: 32.14 kB / 0.5613 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.587e-05/0.361, allocations: 0 / 0.5613 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.361, allocations: 7.984 kB / 0.5613 GB, free: 3.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.889e-05/0.3611, allocations: 83.28 kB / 0.5614 GB, free: 2.988 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3611, allocations: 0 / 0.5614 GB, free: 2.988 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002852/0.3614, allocations: 43.88 kB / 0.5614 GB, free: 2.945 MB / 398.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.0008171/0.3622, allocations: 0.7402 MB / 0.5621 GB, free: 2.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002232/0.3624, allocations: 127.6 kB / 0.5622 GB, free: 2.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3624, allocations: 4.125 kB / 0.5622 GB, free: 2.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.765e-05/0.3625, allocations: 23.98 kB / 0.5623 GB, free: 2.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001533/0.3626, allocations: 15.92 kB / 0.5623 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.3641, allocations: 1.438 MB / 0.5637 GB, free: 464 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/0.3644, allocations: 0.6812 MB / 0.5644 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.08e-05/0.3645, allocations: 24.59 kB / 0.5644 GB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.059e-05/0.3645, allocations: 15.44 kB / 0.5644 GB, free: 15.7 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3645, allocations: 0 / 0.5644 GB, free: 15.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03191/0.3964, allocations: 3.188 MB / 0.5675 GB, free: 12.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.57, allocations: 8.062 kB / 0.5675 GB, free: 12.64 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/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_4.0.0_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: 14.684515952132642]