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.002011/0.002011, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001727/0.001727, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 8 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.2279/0.2279, allocations: 46.94 MB / 360.9 MB, free: 4.25 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.001999/0.001999, allocations: 67.88 kB / 0.4962 GB, free: 7.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.3605, allocations: 66.03 MB / 0.5606 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001843/0.3624, allocations: 0.5344 MB / 0.5612 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.3634, allocations: 454.6 kB / 0.5616 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.611e-05/0.3635, allocations: 0 / 0.5616 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.755e-05/0.3636, allocations: 0 / 0.5616 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.3637, allocations: 11.91 kB / 0.5616 GB, free: 3.492 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.0006852/0.3644, allocations: 175.5 kB / 0.5618 GB, free: 3.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000193/0.3646, allocations: 87.78 kB / 0.5619 GB, free: 3.234 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.873e-05/0.3646, allocations: 7.984 kB / 0.5619 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.564e-05/0.3647, allocations: 31.98 kB / 0.5619 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.66e-05/0.3648, allocations: 23.91 kB / 0.5619 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.457e-05/0.3648, allocations: 0 / 0.5619 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002926/0.3651, allocations: 139.8 kB / 0.5621 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-05/0.3651, allocations: 15.97 kB / 0.5621 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.923e-05/0.3652, allocations: 35.72 kB / 0.5621 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.3655, allocations: 129.5 kB / 0.5622 GB, free: 2.859 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.508e-06/0.3655, allocations: 4 kB / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3655, allocations: 4 kB / 0.5622 GB, free: 2.852 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3655, allocations: 0 / 0.5622 GB, free: 2.852 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.0007968/0.3663, allocations: 335.7 kB / 0.5626 GB, free: 2.484 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.3663, allocations: 8.031 kB / 0.5626 GB, free: 2.477 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.534e-05/0.3664, allocations: 38.75 kB / 0.5626 GB, free: 2.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.906e-05/0.3664, allocations: 8.875 kB / 0.5626 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.3667, allocations: 126.5 kB / 0.5627 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.634e-06/0.3667, allocations: 384 / 0.5627 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.3667, allocations: 4.375 kB / 0.5627 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.3669, allocations: 98.14 kB / 0.5628 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3669, allocations: 3.938 kB / 0.5628 GB, free: 2.164 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.408e-05/0.367, allocations: 3.984 kB / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.367, allocations: 0 / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.861e-05/0.367, allocations: 19.98 kB / 0.5629 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002609/0.3673, allocations: 136.7 kB / 0.563 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001199/0.3674, allocations: 42.62 kB / 0.563 GB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.3e-05/0.3675, allocations: 24.91 kB / 0.5631 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.047e-05/0.3675, allocations: 4 kB / 0.5631 GB, free: 1.883 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004363/0.3679, allocations: 135.2 kB / 0.5632 GB, free: 1.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.3679, allocations: 0 / 0.5632 GB, free: 1.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003313/0.3683, allocations: 121.5 kB / 0.5633 GB, free: 1.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.3683, allocations: 63.41 kB / 0.5634 GB, free: 1.539 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.996e-05/0.3684, allocations: 105.8 kB / 0.5635 GB, free: 1.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.3685, allocations: 33.7 kB / 0.5635 GB, free: 1.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.008e-05/0.3685, allocations: 80.14 kB / 0.5636 GB, free: 1.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.3686, allocations: 23.84 kB / 0.5636 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.3686, allocations: 25.72 kB / 0.5636 GB, free: 1.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000254/0.3689, allocations: 322.8 kB / 0.5639 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.706e-05/0.3689, allocations: 20.27 kB / 0.5639 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.3692, allocations: 90.78 kB / 0.564 GB, free: 0.793 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.3694, allocations: 148.4 kB / 0.5642 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3694, allocations: 3.938 kB / 0.5642 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002467/0.3696, allocations: 163.3 kB / 0.5643 GB, free: 452 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.3697, allocations: 33.73 kB / 0.5644 GB, free: 412 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.3697, allocations: 4 kB / 0.5644 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3697, allocations: 0 / 0.5644 GB, free: 408 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.3698, allocations: 19.92 kB / 0.5644 GB, free: 388 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.3698, allocations: 4 kB / 0.5644 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.716e-05/0.3699, allocations: 11.95 kB / 0.5644 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.3699, allocations: 7.938 kB / 0.5644 GB, free: 364 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.0001637/0.3701, allocations: 136.1 kB / 0.5645 GB, free: 224 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.3701, allocations: 15.88 kB / 0.5646 GB, free: 208 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.209e-05/0.3701, allocations: 12.12 kB / 0.5646 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.3701, allocations: 4 kB / 0.5646 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3701, allocations: 0 / 0.5646 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.3701, allocations: 0 / 0.5646 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.3703, allocations: 140.7 kB / 0.5647 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/0.3703, allocations: 4 kB / 0.5647 GB, free: 0 / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/0.3704, allocations: 7.984 kB / 0.5647 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3704, allocations: 0 / 0.5647 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.3704, allocations: 7.938 kB / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3704, allocations: 0 / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.3704, allocations: 0 / 0.5647 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002159/0.3706, allocations: 129 kB / 0.5648 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.305e-05/0.3706, allocations: 7.891 kB / 0.5649 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.07e-05/0.3706, allocations: 8 kB / 0.5649 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/0.3708, allocations: 19.97 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.799e-05/0.3709, allocations: 4 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.3709, allocations: 11.98 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.208e-05/0.3709, allocations: 79.28 kB / 0.565 GB, free: 15.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3709, allocations: 0 / 0.565 GB, free: 15.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.3712, allocations: 47.86 kB / 0.565 GB, free: 15.66 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.0009025/0.3721, allocations: 0.7456 MB / 0.5657 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002529/0.3724, allocations: 131.2 kB / 0.5659 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3724, allocations: 3.938 kB / 0.5659 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.266e-05/0.3725, allocations: 28.66 kB / 0.5659 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.3726, allocations: 8 kB / 0.5659 GB, free: 14.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001767/0.3744, allocations: 1.431 MB / 0.5673 GB, free: 13.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.3748, allocations: 0.6812 MB / 0.568 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.266e-05/0.3748, allocations: 20.66 kB / 0.568 GB, free: 12.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.3749, allocations: 19.42 kB / 0.568 GB, free: 12.42 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3749, allocations: 0 / 0.568 GB, free: 12.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02924/0.4041, allocations: 3.18 MB / 0.5711 GB, free: 9.371 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.4, allocations: 6.641 kB / 0.5711 GB, free: 9.367 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.638580950995674]