Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007054/0.0007054, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 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.0008007/0.0008007, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9919/0.9919, allocations: 158.6 MB / 185 MB, free: 3.02 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1476/0.1476, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 406.8 MB, free: 2.242 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.42e-05/2.634e-05, allocations: 6.078 kB / 406.8 MB, free: 2.238 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001539/0.001565, allocations: 0.5416 MB / 407.4 MB, free: 1.699 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008105/0.002376, allocations: 441 kB / 407.8 MB, free: 1.266 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.715e-05/0.002413, allocations: 0 / 407.8 MB, free: 1.266 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.732e-05/0.00249, allocations: 3.984 kB / 407.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001329/0.002623, allocations: 11.94 kB / 407.8 MB, free: 1.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.003192, allocations: 175.3 kB / 408 MB, free: 1.078 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001457/0.003338, allocations: 91.77 kB / 408.1 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.799e-05/0.003386, allocations: 4 kB / 408.1 MB, free: 0.9844 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.307e-05/0.003459, allocations: 39.95 kB / 408.1 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.004831, allocations: 462 kB / 408.6 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.004856, allocations: 4 kB / 408.6 MB, free: 0.5312 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.051e-05/0.004916, allocations: 15.92 kB / 408.6 MB, free: 0.5156 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.004962, allocations: 27.84 kB / 408.6 MB, free: 500 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.004997, allocations: 19.97 kB / 408.6 MB, free: 480 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.005159, allocations: 83.75 kB / 408.7 MB, free: 396 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.005161, allocations: 0 / 408.7 MB, free: 396 kB / 378.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.005164, allocations: 11.98 kB / 408.7 MB, free: 384 kB / 378.7 MB Notification: Performance of Transformations before backend: time 4.117e-06/0.005168, allocations: 0 / 408.7 MB, free: 384 kB / 378.7 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.0004446/0.005613, allocations: 312 kB / 409 MB, free: 32 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/0.005674, allocations: 8.031 kB / 409.1 MB, free: 24 kB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.005718, allocations: 38.75 kB / 409.1 MB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.525e-05/0.005753, allocations: 4.891 kB / 409.1 MB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.00589, allocations: 125.8 kB / 409.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.005899, allocations: 4.312 kB / 409.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.00591, allocations: 4.375 kB / 409.2 MB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001494/0.006059, allocations: 90.19 kB / 409.3 MB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.006067, allocations: 4.188 kB / 409.3 MB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.006081, allocations: 4.375 kB / 409.3 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.006087, allocations: 4.125 kB / 409.3 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.992e-05/0.006137, allocations: 27.91 kB / 409.4 MB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.00631, allocations: 136.7 kB / 409.5 MB, free: 15.51 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.008e-05/0.00638, allocations: 42.56 kB / 409.5 MB, free: 15.46 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.959e-05/0.006409, allocations: 20.92 kB / 409.5 MB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.006424, allocations: 3.984 kB / 409.6 MB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001946/0.006619, allocations: 135.2 kB / 409.7 MB, free: 15.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 9.62e-07/0.00662, allocations: 0 / 409.7 MB, free: 15.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002245/0.006844, allocations: 125.5 kB / 409.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.006882, allocations: 63.39 kB / 409.9 MB, free: 15.08 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.12e-05/0.006933, allocations: 93.86 kB / 410 MB, free: 14.98 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.00695, allocations: 29.7 kB / 410 MB, free: 14.95 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.565e-05/0.006976, allocations: 88.12 kB / 410.1 MB, free: 14.86 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.007, allocations: 23.81 kB / 410.1 MB, free: 14.83 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.007033, allocations: 29.7 kB / 410.1 MB, free: 14.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.007181, allocations: 319.1 kB / 410.4 MB, free: 14.48 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.274e-05/0.007224, allocations: 53.67 kB / 410.5 MB, free: 14.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.894e-05/0.007283, allocations: 104.6 kB / 410.6 MB, free: 14.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.007411, allocations: 152.4 kB / 410.7 MB, free: 14.11 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.007414, allocations: 0 / 410.7 MB, free: 14.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001471/0.007561, allocations: 188.9 kB / 410.9 MB, free: 13.9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.007585, allocations: 29.7 kB / 411 MB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.007592, allocations: 4 kB / 411 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.007607, allocations: 4 kB / 411 MB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.513e-05/0.007692, allocations: 23.92 kB / 411 MB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.007697, allocations: 4 kB / 411 MB, free: 13.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.848e-05/0.007726, allocations: 11.95 kB / 411 MB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.007734, allocations: 4.219 kB / 411 MB, free: 13.82 MB / 394.7 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.0001073/0.007842, allocations: 133.8 kB / 411.1 MB, free: 13.68 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.359e-05/0.007855, allocations: 11.89 kB / 411.1 MB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.007888, allocations: 12.12 kB / 411.2 MB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.007891, allocations: 3.938 kB / 411.2 MB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.007896, allocations: 3.984 kB / 411.2 MB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.007899, allocations: 0 / 411.2 MB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.854e-05/0.007988, allocations: 140.7 kB / 411.3 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.007988, allocations: 0 / 411.3 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.6e-05/0.008004, allocations: 8 kB / 411.3 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.008006, allocations: 0 / 411.3 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.008014, allocations: 3.984 kB / 411.3 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.008016, allocations: 7.875 kB / 411.3 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.008016, allocations: 4 kB / 411.3 MB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001297/0.008146, allocations: 133 kB / 411.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-06/0.008154, allocations: 8.188 kB / 411.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.008168, allocations: 4 kB / 411.5 MB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.714e-05/0.008265, allocations: 23.89 kB / 411.5 MB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.168e-05/0.008287, allocations: 7.984 kB / 411.5 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.008299, allocations: 12 kB / 411.5 MB, free: 13.24 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.339e-05/0.008322, allocations: 79.28 kB / 411.6 MB, free: 13.16 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.008322, allocations: 0 / 411.6 MB, free: 13.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000159/0.008481, allocations: 23.98 kB / 411.6 MB, free: 13.14 MB / 394.7 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.0005625/0.009044, allocations: 0.6944 MB / 412.3 MB, free: 12.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001542/0.009198, allocations: 157.3 kB / 412.5 MB, free: 12.24 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.009199, allocations: 4.062 kB / 412.5 MB, free: 12.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.176e-05/0.009231, allocations: 23.98 kB / 412.5 MB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.009354, allocations: 15.84 kB / 412.5 MB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009532/0.01031, allocations: 1.533 MB / 414 MB, free: 10.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.605e-05/0.01035, allocations: 71.33 kB / 414.1 MB, free: 10.42 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.842e-05/0.01039, allocations: 16.72 kB / 414.1 MB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.167e-05/0.01042, allocations: 16.5 kB / 414.1 MB, free: 10.38 MB / 394.7 MB Notification: Performance of SimCode: time 6.22e-07/0.01042, allocations: 0 / 414.1 MB, free: 10.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01769/0.02811, allocations: 3.27 MB / 417.4 MB, free: 7.055 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.1/7.128, allocations: 11.92 kB / 417.4 MB, free: 7.043 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.400092362426221] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 7.210112766362727 7.225233205 7.216972625 Calling exit ...