Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00138/0.00138, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001517/0.001517, allocations: 218.2 kB / 23.73 MB, free: 4.164 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.471/1.471, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2379/0.2379, allocations: 46.96 MB / 360.9 MB, free: 4.066 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002123/0.002123, allocations: 71.89 kB / 0.4961 GB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3359, allocations: 66.03 MB / 0.5606 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001598/0.3375, allocations: 0.5305 MB / 0.5611 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008741/0.3384, allocations: 422.7 kB / 0.5615 GB, free: 3.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.539e-05/0.3384, allocations: 3.938 kB / 0.5615 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.978e-05/0.3385, allocations: 4 kB / 0.5615 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.3386, allocations: 15.91 kB / 0.5615 GB, free: 3.293 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.0005691/0.3391, allocations: 175.1 kB / 0.5617 GB, free: 3.125 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.3393, allocations: 75.92 kB / 0.5618 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.31e-05/0.3393, allocations: 3.984 kB / 0.5618 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.064e-05/0.3394, allocations: 43.84 kB / 0.5618 GB, free: 3.004 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.65e-05/0.3394, allocations: 23.91 kB / 0.5618 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.3395, allocations: 0 / 0.5618 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.3397, allocations: 135.8 kB / 0.562 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.869e-05/0.3398, allocations: 19.97 kB / 0.562 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.124e-05/0.3398, allocations: 19.91 kB / 0.562 GB, free: 2.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.34, allocations: 141.4 kB / 0.5621 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.34, allocations: 0 / 0.5621 GB, free: 2.672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.34, allocations: 0 / 0.5621 GB, free: 2.672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.754e-06/0.34, allocations: 3.938 kB / 0.5622 GB, free: 2.668 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.0005081/0.3405, allocations: 331.8 kB / 0.5625 GB, free: 2.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3406, allocations: 12.03 kB / 0.5625 GB, free: 2.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.3406, allocations: 30.75 kB / 0.5625 GB, free: 2.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.496e-05/0.3407, allocations: 16.89 kB / 0.5625 GB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.3408, allocations: 122.5 kB / 0.5626 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.3408, allocations: 8.359 kB / 0.5627 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.3409, allocations: 384 / 0.5627 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.3411, allocations: 86.2 kB / 0.5627 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3411, allocations: 3.938 kB / 0.5627 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.3411, allocations: 7.984 kB / 0.5627 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.3411, allocations: 7.938 kB / 0.5628 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.033e-05/0.3411, allocations: 19.98 kB / 0.5628 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001667/0.3413, allocations: 132.8 kB / 0.5629 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.967e-05/0.3414, allocations: 38.56 kB / 0.5629 GB, free: 1.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.486e-05/0.3414, allocations: 29.05 kB / 0.563 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/0.3415, allocations: 0 / 0.563 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002612/0.3417, allocations: 139.2 kB / 0.5631 GB, free: 1.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.3417, allocations: 0 / 0.5631 GB, free: 1.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002888/0.342, allocations: 125.5 kB / 0.5632 GB, free: 1.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.251e-05/0.3421, allocations: 59.41 kB / 0.5633 GB, free: 1.359 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.532e-05/0.3421, allocations: 97.86 kB / 0.5634 GB, free: 1.254 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.445e-05/0.3422, allocations: 37.69 kB / 0.5634 GB, free: 1.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.992e-05/0.3422, allocations: 80.14 kB / 0.5635 GB, free: 1.129 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.3423, allocations: 19.86 kB / 0.5635 GB, free: 1.109 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.3423, allocations: 37.64 kB / 0.5635 GB, free: 1.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3424, allocations: 318.8 kB / 0.5638 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.713e-05/0.3425, allocations: 49.69 kB / 0.5639 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.3426, allocations: 111.2 kB / 0.564 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.3428, allocations: 148.4 kB / 0.5641 GB, free: 388 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3428, allocations: 0 / 0.5641 GB, free: 388 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002564/0.3431, allocations: 193.1 kB / 0.5643 GB, free: 176 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.158e-05/0.3431, allocations: 33.7 kB / 0.5643 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.3431, allocations: 4.219 kB / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.3431, allocations: 7.938 kB / 0.5644 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3432, allocations: 19.92 kB / 0.5644 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.3432, allocations: 4 kB / 0.5644 GB, free: 100 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.933e-05/0.3433, allocations: 7.953 kB / 0.5644 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.097e-05/0.3433, allocations: 8 kB / 0.5644 GB, free: 84 kB / 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.000162/0.3435, allocations: 125.8 kB / 0.5645 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.3435, allocations: 15.88 kB / 0.5645 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.485e-05/0.3435, allocations: 8.062 kB / 0.5645 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.3435, allocations: 0 / 0.5645 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3435, allocations: 4 kB / 0.5645 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3435, allocations: 192 / 0.5645 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.3437, allocations: 136.7 kB / 0.5647 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3437, allocations: 0 / 0.5647 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.945e-05/0.3437, allocations: 15.86 kB / 0.5647 GB, free: 15.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.3437, allocations: 3.984 kB / 0.5647 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.3437, allocations: 4 kB / 0.5647 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3437, allocations: 0 / 0.5647 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3437, allocations: 0 / 0.5647 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.344, allocations: 137 kB / 0.5648 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.928e-05/0.344, allocations: 11.89 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.344, allocations: 3.984 kB / 0.5648 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.3442, allocations: 19.98 kB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-05/0.3442, allocations: 3.984 kB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.3442, allocations: 8.062 kB / 0.5649 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.838e-05/0.3443, allocations: 83.27 kB / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3443, allocations: 0 / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000282/0.3446, allocations: 47.88 kB / 0.565 GB, free: 15.39 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.0007822/0.3453, allocations: 0.7556 MB / 0.5657 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.3456, allocations: 149 kB / 0.5659 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3456, allocations: 0 / 0.5659 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.261e-05/0.3456, allocations: 28.41 kB / 0.5659 GB, free: 14.44 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.3458, allocations: 19.92 kB / 0.5659 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.3473, allocations: 1.536 MB / 0.5674 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.954e-05/0.3473, allocations: 67.34 kB / 0.5675 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.874e-05/0.3474, allocations: 12.66 kB / 0.5675 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.736e-05/0.3474, allocations: 23.42 kB / 0.5675 GB, free: 12.61 MB / 414.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3474, allocations: 0 / 0.5675 GB, free: 12.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02905/0.3765, allocations: 3.697 MB / 0.5711 GB, free: 9.055 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.62, allocations: 13.84 kB / 0.5711 GB, free: 9.047 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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.000166639 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable y in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable y from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[2] in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[2] from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[3] in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[3] from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable samples in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable samples from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.866478755138814]