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.001225/0.001225, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001344/0.001344, allocations: 215 kB / 21.45 MB, free: 1.617 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.422/1.422, allocations: 230.6 MB / 254.8 MB, free: 15.26 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.2219/0.2219, allocations: 46.92 MB / 357.8 MB, free: 10.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 67.84 kB / 0.4916 GB, free: 7.965 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.1258, allocations: 65.99 MB / 0.5561 GB, free: 5.848 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001714/0.1275, allocations: 0.5262 MB / 0.5566 GB, free: 5.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000914/0.1285, allocations: 460.8 kB / 0.557 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.913e-05/0.1285, allocations: 0 / 0.557 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 7.661e-05/0.1286, allocations: 4 kB / 0.557 GB, free: 4.867 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.1287, allocations: 3.938 kB / 0.557 GB, free: 4.863 MB / 414.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.0005821/0.1292, allocations: 166.9 kB / 0.5572 GB, free: 4.703 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00017/0.1294, allocations: 95.77 kB / 0.5573 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.672e-05/0.1295, allocations: 0 / 0.5573 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.849e-05/0.1295, allocations: 43.95 kB / 0.5573 GB, free: 4.566 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6e-05/0.1296, allocations: 19.92 kB / 0.5573 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.443e-05/0.1296, allocations: 4 kB / 0.5573 GB, free: 4.543 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002047/0.1298, allocations: 103.9 kB / 0.5574 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.479e-05/0.1299, allocations: 19.97 kB / 0.5575 GB, free: 4.422 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.816e-05/0.1299, allocations: 27.78 kB / 0.5575 GB, free: 4.395 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002235/0.1302, allocations: 131.7 kB / 0.5576 GB, free: 4.266 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1302, allocations: 0 / 0.5576 GB, free: 4.266 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1302, allocations: 0 / 0.5576 GB, free: 4.266 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1302, allocations: 0 / 0.5576 GB, free: 4.266 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.0006076/0.1308, allocations: 412.8 kB / 0.558 GB, free: 3.805 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1308, allocations: 8.031 kB / 0.558 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.168e-05/0.1308, allocations: 192 / 0.558 GB, free: 3.797 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.1309, allocations: 42.73 kB / 0.5581 GB, free: 3.746 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.615e-05/0.1309, allocations: 8.891 kB / 0.5581 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.1311, allocations: 176.4 kB / 0.5582 GB, free: 3.527 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-06/0.1311, allocations: 4.359 kB / 0.5582 GB, free: 3.523 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.1311, allocations: 4.375 kB / 0.5582 GB, free: 3.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.1313, allocations: 97.88 kB / 0.5583 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1313, allocations: 4 kB / 0.5583 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.1314, allocations: 4 kB / 0.5583 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.1314, allocations: 0 / 0.5583 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.032e-05/0.1314, allocations: 23.98 kB / 0.5584 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002037/0.1316, allocations: 161.6 kB / 0.5585 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001013/0.1317, allocations: 46.55 kB / 0.5586 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.558e-05/0.1318, allocations: 20.92 kB / 0.5586 GB, free: 3.102 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.1318, allocations: 3.938 kB / 0.5586 GB, free: 3.098 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.1321, allocations: 139.1 kB / 0.5587 GB, free: 2.949 MB / 414.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.1321, allocations: 0 / 0.5587 GB, free: 2.949 MB / 414.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003135/0.1324, allocations: 125.5 kB / 0.5588 GB, free: 2.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.1324, allocations: 59.39 kB / 0.5589 GB, free: 2.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.094e-05/0.1325, allocations: 101.9 kB / 0.559 GB, free: 2.641 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.1326, allocations: 29.7 kB / 0.559 GB, free: 2.605 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.152e-05/0.1326, allocations: 84.14 kB / 0.5591 GB, free: 2.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.679e-05/0.1326, allocations: 27.98 kB / 0.5591 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.187e-05/0.1327, allocations: 29.7 kB / 0.5592 GB, free: 2.457 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1328, allocations: 318.8 kB / 0.5595 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.801e-05/0.1329, allocations: 19.98 kB / 0.5595 GB, free: 2.117 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.815e-05/0.133, allocations: 82.78 kB / 0.5596 GB, free: 2.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002065/0.1332, allocations: 156.3 kB / 0.5597 GB, free: 1.828 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1332, allocations: 0 / 0.5597 GB, free: 1.828 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002276/0.1334, allocations: 151.2 kB / 0.5598 GB, free: 1.668 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.1334, allocations: 37.7 kB / 0.5599 GB, free: 1.625 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1334, allocations: 8.281 kB / 0.5599 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1335, allocations: 4 kB / 0.5599 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.1336, allocations: 19.92 kB / 0.5599 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.1336, allocations: 4 kB / 0.5599 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.053e-05/0.1336, allocations: 11.89 kB / 0.5599 GB, free: 1.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.1336, allocations: 8 kB / 0.5599 GB, free: 1.57 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.0001518/0.1338, allocations: 127.7 kB / 0.5601 GB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.325e-05/0.1338, allocations: 15.89 kB / 0.5601 GB, free: 1.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.1339, allocations: 11.97 kB / 0.5601 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1339, allocations: 0 / 0.5601 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.1339, allocations: 0 / 0.5601 GB, free: 1.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1339, allocations: 3.984 kB / 0.5601 GB, free: 1.406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.134, allocations: 161.7 kB / 0.5602 GB, free: 1.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.134, allocations: 3.938 kB / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.762e-05/0.1341, allocations: 11.98 kB / 0.5603 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.1341, allocations: 0 / 0.5603 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.1341, allocations: 4 kB / 0.5603 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1341, allocations: 0 / 0.5603 GB, free: 1.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1341, allocations: 4.281 kB / 0.5603 GB, free: 1.176 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.1343, allocations: 133 kB / 0.5604 GB, free: 1.027 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.617e-05/0.1343, allocations: 85 kB / 0.5605 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.1344, allocations: 4.188 kB / 0.5605 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.1346, allocations: 23.95 kB / 0.5605 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.1346, allocations: 7.984 kB / 0.5605 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1346, allocations: 8 kB / 0.5605 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.455e-05/0.1347, allocations: 79.28 kB / 0.5606 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1347, allocations: 0 / 0.5606 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.1349, allocations: 43.92 kB / 0.5606 GB, free: 0.7617 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.0008101/0.1358, allocations: 0.7522 MB / 0.5614 GB, free: 0 / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002401/0.136, allocations: 127.2 kB / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.136, allocations: 0 / 0.5615 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 6.313e-05/0.1361, allocations: 31.98 kB / 0.5615 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.1362, allocations: 448 / 0.5615 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.1377, allocations: 1.447 MB / 0.5629 GB, free: 14.26 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1379, allocations: 0.6807 MB / 0.5636 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.878e-05/0.138, allocations: 16.66 kB / 0.5636 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.88e-05/0.138, allocations: 19.42 kB / 0.5636 GB, free: 13.51 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.138, allocations: 7.938 kB / 0.5636 GB, free: 13.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0179/0.1559, allocations: 3.06 MB / 0.5666 GB, free: 10.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.991/8.147, allocations: 7.812 kB / 0.5666 GB, free: 10.55 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.00698550400557] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.268358169007115 8.282479678 8.14964625 Calling exit ...