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.0009832/0.0009832, allocations: 80.48 kB / 19.92 MB, free: 4.625 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.0008178/0.0008178, allocations: 173.9 kB / 23.21 MB, free: 1.344 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.888/0.888, allocations: 158.6 MB / 185 MB, free: 3.027 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.1445/0.1445, allocations: 32.37 MB / 269.6 MB, free: 14.97 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.014e-06/2.014e-06, allocations: 0 / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.758e-05/2.96e-05, allocations: 2.281 kB / 406.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001669/0.001699, allocations: 0.5456 MB / 407.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008277/0.002527, allocations: 433.1 kB / 407.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.308e-05/0.00258, allocations: 0 / 407.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.126e-05/0.002671, allocations: 4 kB / 407.8 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001638/0.002835, allocations: 15.92 kB / 407.8 MB, free: 12.53 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006858/0.003521, allocations: 175.3 kB / 408 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.000189/0.00371, allocations: 83.84 kB / 408.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.787e-05/0.003758, allocations: 0 / 408.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.021e-05/0.003848, allocations: 51.89 kB / 408.1 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/0.005441, allocations: 462.2 kB / 408.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.005496, allocations: 4 kB / 408.6 MB, free: 11.84 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.081e-05/0.005577, allocations: 19.97 kB / 408.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.642e-05/0.005633, allocations: 15.92 kB / 408.6 MB, free: 11.8 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.936e-05/0.005683, allocations: 23.91 kB / 408.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.005908, allocations: 91.73 kB / 408.7 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.005911, allocations: 0 / 408.7 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.005913, allocations: 4 kB / 408.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.005919, allocations: 0 / 408.7 MB, free: 11.68 MB / 346.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.0004923/0.006411, allocations: 312 kB / 409 MB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.006458, allocations: 8.031 kB / 409.1 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.569e-05/0.006494, allocations: 42.73 kB / 409.1 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.006541, allocations: 12.89 kB / 409.1 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001593/0.006701, allocations: 121.7 kB / 409.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.00671, allocations: 384 / 409.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.00672, allocations: 4.375 kB / 409.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001713/0.006891, allocations: 94.19 kB / 409.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.006901, allocations: 8.125 kB / 409.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.006921, allocations: 384 / 409.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.006931, allocations: 8.125 kB / 409.3 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.729e-05/0.006988, allocations: 19.98 kB / 409.4 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001661/0.007154, allocations: 140.7 kB / 409.5 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.22e-05/0.007226, allocations: 38.56 kB / 409.5 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/0.007261, allocations: 20.91 kB / 409.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.611e-05/0.007277, allocations: 0 / 409.6 MB, free: 10.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001884/0.007465, allocations: 139.2 kB / 409.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.007467, allocations: 0 / 409.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002268/0.007693, allocations: 129.5 kB / 409.8 MB, free: 10.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.007732, allocations: 55.41 kB / 409.9 MB, free: 10.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.966e-05/0.007792, allocations: 97.84 kB / 410 MB, free: 10.29 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.007815, allocations: 33.7 kB / 410 MB, free: 10.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.186e-05/0.007847, allocations: 80.14 kB / 410.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.007882, allocations: 27.78 kB / 410.1 MB, free: 10.14 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.872e-05/0.007921, allocations: 29.72 kB / 410.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.818e-05/0.008009, allocations: 318.8 kB / 410.4 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.695e-05/0.008056, allocations: 53.97 kB / 410.5 MB, free: 9.723 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.13e-05/0.008128, allocations: 108.6 kB / 410.6 MB, free: 9.586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.008278, allocations: 132.5 kB / 410.7 MB, free: 9.426 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.008281, allocations: 3.938 kB / 410.7 MB, free: 9.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001647/0.008446, allocations: 196.8 kB / 410.9 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.008474, allocations: 29.7 kB / 411 MB, free: 9.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.008481, allocations: 4 kB / 411 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.008495, allocations: 7.938 kB / 411 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.633e-05/0.008591, allocations: 19.92 kB / 411 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.008597, allocations: 0 / 411 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.637e-05/0.008633, allocations: 11.95 kB / 411 MB, free: 9.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.008647, allocations: 8 kB / 411 MB, free: 9.125 MB / 346.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.0001338/0.008781, allocations: 134.5 kB / 411.1 MB, free: 8.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.091e-05/0.008802, allocations: 11.98 kB / 411.2 MB, free: 8.973 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.174e-05/0.008834, allocations: 8.109 kB / 411.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.008837, allocations: 3.938 kB / 411.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.008843, allocations: 0 / 411.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.008849, allocations: 4 kB / 411.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001113/0.00896, allocations: 144.6 kB / 411.3 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.008962, allocations: 0 / 411.3 MB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.17e-05/0.008994, allocations: 7.984 kB / 411.3 MB, free: 8.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.008996, allocations: 4 kB / 411.3 MB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.009006, allocations: 4 kB / 411.3 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.009008, allocations: 3.938 kB / 411.3 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.00901, allocations: 0 / 411.3 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001524/0.009162, allocations: 133 kB / 411.5 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.009174, allocations: 11.95 kB / 411.5 MB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.00919, allocations: 3.984 kB / 411.5 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.009299, allocations: 19.92 kB / 411.5 MB, free: 8.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.592e-05/0.009325, allocations: 7.984 kB / 411.5 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.00934, allocations: 8 kB / 411.5 MB, free: 8.555 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.402e-05/0.009374, allocations: 83.27 kB / 411.6 MB, free: 8.473 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009374, allocations: 0 / 411.6 MB, free: 8.473 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001808/0.009555, allocations: 20 kB / 411.6 MB, free: 8.453 MB / 346.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.0006183/0.01017, allocations: 0.7022 MB / 412.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002526/0.01043, allocations: 149.3 kB / 412.5 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.01043, allocations: 64 / 412.5 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.102e-05/0.01047, allocations: 27.98 kB / 412.5 MB, free: 7.527 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.01062, allocations: 19.36 kB / 412.5 MB, free: 7.512 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.01176, allocations: 1.542 MB / 414 MB, free: 5.812 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.123e-05/0.01181, allocations: 71.28 kB / 414.1 MB, free: 5.723 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.698e-05/0.01185, allocations: 16.72 kB / 414.1 MB, free: 5.703 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.01188, allocations: 16.48 kB / 414.1 MB, free: 5.688 MB / 346.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01188, allocations: 0 / 414.1 MB, free: 5.688 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.03142, allocations: 3.268 MB / 417.4 MB, free: 2.379 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.73/6.761, allocations: 4 kB / 417.4 MB, free: 2.375 MB / 346.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 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: 8.738928565755486] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 6.840923231095076 6.848847129 6.841270736 Calling exit ...