Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 95.72 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 181.2 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 223.2 MB / 241.8 MB, free: 392 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1964/0.1964, allocations: 44.23 MB / 337.1 MB, free: 2.918 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003538/0.000354, allocations: 8.781 kB / 409.6 MB, free: 27.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1517, allocations: 61.92 MB / 471.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0007871/0.1525, allocations: 262.8 kB / 471.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009289/0.1535, allocations: 404.8 kB / 472.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.848e-05/0.1535, allocations: 4 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.633e-05/0.1536, allocations: 0 / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.1538, allocations: 3.984 kB / 472.2 MB, free: 13.02 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.000591/0.1544, allocations: 151 kB / 472.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.1545, allocations: 51.86 kB / 472.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.496e-05/0.1546, allocations: 0 / 472.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.894e-05/0.1547, allocations: 43.95 kB / 472.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.424e-05/0.1547, allocations: 15.92 kB / 472.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.411e-05/0.1548, allocations: 4 kB / 472.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000159/0.1549, allocations: 67.92 kB / 472.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.756e-05/0.155, allocations: 27.89 kB / 472.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.215e-05/0.155, allocations: 29.7 kB / 472.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.1552, allocations: 87.8 kB / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1552, allocations: 0 / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1552, allocations: 0 / 472.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1552, allocations: 0 / 472.7 MB, free: 12.55 MB / 350.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.0006208/0.1559, allocations: 381 kB / 473 MB, free: 12.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.1559, allocations: 15.97 kB / 473.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.903e-05/0.156, allocations: 34.56 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.58e-05/0.156, allocations: 4 kB / 473.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/0.1563, allocations: 183.2 kB / 473.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.1563, allocations: 0 / 473.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.864e-05/0.1563, allocations: 7.953 kB / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.1565, allocations: 89.62 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.1565, allocations: 0 / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.147e-05/0.1566, allocations: 4 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.1566, allocations: 4 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.171e-05/0.1567, allocations: 27.97 kB / 473.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002136/0.1569, allocations: 169.5 kB / 473.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.739e-05/0.157, allocations: 46.5 kB / 473.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.157, allocations: 160 / 473.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003134/0.1573, allocations: 139.3 kB / 473.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.1573, allocations: 0 / 473.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004458/0.1578, allocations: 198.7 kB / 473.9 MB, free: 11.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1579, allocations: 59.39 kB / 474 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.158, allocations: 94 kB / 474.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.158, allocations: 29.7 kB / 474.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.967e-05/0.1581, allocations: 84.33 kB / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.1582, allocations: 31.64 kB / 474.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-06/0.1582, allocations: 4 kB / 474.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001844/0.1584, allocations: 314.8 kB / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.861e-05/0.1584, allocations: 27.92 kB / 474.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.1586, allocations: 70.86 kB / 474.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001129/0.1587, allocations: 65.69 kB / 474.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1587, allocations: 0 / 474.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002696/0.159, allocations: 159.2 kB / 474.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.39e-05/0.159, allocations: 41.64 kB / 474.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1591, allocations: 288 / 474.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.7e-05/0.1591, allocations: 8.031 kB / 474.9 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.1592, allocations: 19.94 kB / 474.9 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.1593, allocations: 7.938 kB / 474.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.1593, allocations: 7.969 kB / 474.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1594, allocations: 11.98 kB / 475 MB, free: 9.957 MB / 350.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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002339/0.1596, allocations: 130.4 kB / 475.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.1596, allocations: 4 kB / 475.1 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.806e-05/0.1597, allocations: 19.84 kB / 475.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1597, allocations: 0 / 475.1 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1597, allocations: 4 kB / 475.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1597, allocations: 0 / 475.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002233/0.16, allocations: 177.5 kB / 475.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.16, allocations: 0 / 475.3 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.393e-05/0.16, allocations: 4 kB / 475.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.16, allocations: 0 / 475.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.16, allocations: 8 kB / 475.3 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1601, allocations: 3.953 kB / 475.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1601, allocations: 0 / 475.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.1603, allocations: 129 kB / 475.4 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.98e-05/0.1604, allocations: 89 kB / 475.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.1604, allocations: 0 / 475.5 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.1606, allocations: 27.97 kB / 475.5 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.1607, allocations: 11.95 kB / 475.6 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.1607, allocations: 7.984 kB / 475.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.629e-05/0.1608, allocations: 75.28 kB / 475.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1608, allocations: 0 / 475.6 MB, free: 9.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003147/0.1611, allocations: 40 kB / 475.7 MB, free: 9.145 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008237/0.1619, allocations: 0.7458 MB / 476.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002056/0.1621, allocations: 123.6 kB / 476.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1622, allocations: 4.062 kB / 476.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.564e-05/0.1622, allocations: 35.97 kB / 476.6 MB, free: 8.219 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.1623, allocations: 11.94 kB / 476.6 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.1634, allocations: 1.45 MB / 478 MB, free: 6.676 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1637, allocations: 0.6926 MB / 478.7 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.478e-05/0.1638, allocations: 16.64 kB / 478.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/0.1638, allocations: 19.44 kB / 478.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1638, allocations: 0 / 478.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.1777, allocations: 2.608 MB / 481.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.178, allocations: 217.7 kB / 481.6 MB, free: 3.188 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.12, allocations: 0 / 481.6 MB, free: 3.188 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat