Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.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: translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") translateModel(ModelicaTest.Math.Random.TestRandomNumbers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008908/0.0008908, allocations: 85.75 kB / 17.63 MB, free: 6.16 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.001076/0.001076, allocations: 182.4 kB / 18.52 MB, free: 5.32 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.478/1.478, allocations: 223.2 MB / 242.5 MB, free: 356 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.2403/0.2403, allocations: 44.23 MB / 337.9 MB, free: 2.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003868/0.000387, allocations: 16 kB / 410.3 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1551, allocations: 61.91 MB / 472.2 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomNumbers): time 0.0007372/0.1559, allocations: 266.8 kB / 472.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1571, allocations: 0.5634 MB / 473 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.847e-05/0.1572, allocations: 0 / 473 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.1573, allocations: 7.938 kB / 473 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.527e-06/0.1573, allocations: 0 / 473 MB, free: 12.89 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:842:5-926:22:writable] Warning: Pure function ‘ModelicaTest.Math.Random.randomNumbers‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007408/0.1581, allocations: 171.4 kB / 473.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.556e-05/0.1581, allocations: 23.97 kB / 473.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.385e-05/0.1582, allocations: 4 kB / 473.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.881e-05/0.1582, allocations: 15.92 kB / 473.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.472e-05/0.1583, allocations: 12 kB / 473.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/0.1583, allocations: 7.984 kB / 473.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002819/0.1586, allocations: 159.7 kB / 473.4 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.1587, allocations: 63.88 kB / 473.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.754e-05/0.1588, allocations: 45.64 kB / 473.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.159, allocations: 143.7 kB / 473.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.159, allocations: 0 / 473.6 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.159, allocations: 3.938 kB / 473.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1591, allocations: 0 / 473.7 MB, free: 12.25 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006433/0.1597, allocations: 472.5 kB / 474.1 MB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.1598, allocations: 12.03 kB / 474.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.959e-05/0.1598, allocations: 15.81 kB / 474.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.16, allocations: 174.9 kB / 474.3 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.16, allocations: 16 kB / 474.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.16, allocations: 19.95 kB / 474.3 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002119/0.1603, allocations: 136.2 kB / 474.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.1603, allocations: 0 / 474.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.1603, allocations: 0 / 474.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.1603, allocations: 0 / 474.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001293/0.1605, allocations: 100.3 kB / 474.6 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002735/0.1607, allocations: 226.2 kB / 474.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.1609, allocations: 167 kB / 475 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.1611, allocations: 157.7 kB / 475.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.764e-06/0.1611, allocations: 0 / 475.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002594/0.1613, allocations: 161.9 kB / 475.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=54): time 1.112e-06/0.1613, allocations: 4 kB / 475.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00115/0.1625, allocations: 0.7732 MB / 476.1 MB, free: 9.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.693e-05/0.1626, allocations: 107.8 kB / 476.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.1627, allocations: 113.7 kB / 476.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.746e-05/0.1628, allocations: 69.67 kB / 476.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.445e-05/0.1628, allocations: 97.44 kB / 476.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.163, allocations: 134.5 kB / 476.6 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.163, allocations: 16 kB / 476.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.1632, allocations: 346.8 kB / 476.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.1635, allocations: 181.9 kB / 477.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005673/0.1641, allocations: 0.5331 MB / 477.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.1645, allocations: 263.8 kB / 477.9 MB, free: 7.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.1645, allocations: 4 kB / 477.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0009971/0.1655, allocations: 0.7318 MB / 478.6 MB, free: 6.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.1655, allocations: 16.17 kB / 478.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.1656, allocations: 16 kB / 478.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.034e-05/0.1656, allocations: 16 kB / 478.7 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003649/0.166, allocations: 119.7 kB / 478.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.168e-05/0.166, allocations: 23.92 kB / 478.8 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.1662, allocations: 63.38 kB / 478.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.622e-05/0.1663, allocations: 47.94 kB / 478.9 MB, free: 6.598 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 107 ($PRE.state33[33],state33[33],$PRE.state33[32],state33[32],$PRE.state33[31],state33[31],$PRE.state33[30],state33[30],$PRE.state33[29],state33[29],$PRE.state33[28],state33[28],$PRE.state33[27],state33[27],$PRE.state33[26],state33[26],$PRE.state33[25],state33[25],$PRE.state33[24],state33[24],$PRE.state33[23],state33[23],$PRE.state33[22],state33[22],$PRE.state33[21],state33[21],$PRE.state33[20],state33[20],$PRE.state33[19],state33[19],$PRE.state33[18],state33[18],$PRE.state33[17],state33[17],$PRE.state33[16],state33[16],$PRE.state33[15],state33[15],$PRE.state33[14],state33[14],$PRE.state33[13],state33[13],$PRE.state33[12],state33[12],$PRE.state33[11],state33[11],$PRE.state33[10],state33[10],$PRE.state33[9],state33[9],$PRE.state33[8],state33[8],$PRE.state33[7],state33[7],$PRE.state33[6],state33[6],$PRE.state33[5],state33[5],$PRE.state33[4],state33[4],$PRE.state33[3],state33[3],$PRE.state33[2],state33[2],$PRE.state33[1],state33[1],$PRE.state4c[4],state4c[4],$PRE.state4c[3],state4c[3],$PRE.state4c[2],state4c[2],$PRE.state4c[1],state4c[1],$PRE.state4b[4],state4b[4],$PRE.state4b[3],state4b[3],$PRE.state4b[2],state4b[2],$PRE.state4b[1],state4b[1],$PRE.state4a[4],state4a[4],$PRE.state4a[3],state4a[3],$PRE.state4a[2],state4a[2],$PRE.state4a[1],state4a[1],$PRE.state2[2],state2[2],$PRE.state2[1],state2[1],$PRE.r33,r33,$PRE.r4c,r4c,$PRE.r4b,r4b,$PRE.r4a,r4a,$PRE.r2,r2,$PRE.result,result,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * 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.0002504/0.1665, allocations: 242 kB / 479.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/0.1665, allocations: 7.812 kB / 479.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.1666, allocations: 13.83 kB / 479.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1666, allocations: 3.938 kB / 479.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.1666, allocations: 0 / 479.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1666, allocations: 11.92 kB / 479.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.1668, allocations: 197.7 kB / 479.4 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1668, allocations: 0 / 479.4 MB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.598e-06/0.1668, allocations: 8 kB / 479.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1668, allocations: 0 / 479.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.1668, allocations: 0 / 479.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.604e-06/0.1668, allocations: 3.953 kB / 479.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1668, allocations: 0 / 479.4 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008421/0.1677, allocations: 0.6147 MB / 480 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.213e-05/0.1678, allocations: 104.8 kB / 480.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.1678, allocations: 0 / 480.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.191e-05/0.1678, allocations: 0 / 480.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.512e-05/0.1678, allocations: 3.953 kB / 480.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1678, allocations: 4 kB / 480.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.512e-05/0.1679, allocations: 79.31 kB / 480.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1679, allocations: 0 / 480.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.1684, allocations: 91.98 kB / 480.3 MB, free: 5.121 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: 54 ($whenCondition1,result,r2,r4a,r4b,r4c,r33,state2[1],state2[2],state4a[1],state4a[2],state4a[3],state4a[4],state4b[1],state4b[2],state4b[3],state4b[4],state4c[1],state4c[2],state4c[3],state4c[4],state33[1],state33[2],state33[3],state33[4],state33[5],state33[6],state33[7],state33[8],state33[9],state33[10],state33[11],state33[12],state33[13],state33[14],state33[15],state33[16],state33[17],state33[18],state33[19],state33[20],state33[21],state33[22],state33[23],state33[24],state33[25],state33[26],state33[27],state33[28],state33[29],state33[30],state33[31],state33[32],state33[33]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005809/0.169, allocations: 262.4 kB / 480.5 MB, free: 4.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006217/0.1696, allocations: 460.9 kB / 481 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1696, allocations: 0 / 481 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.1698, allocations: 161.2 kB / 481.1 MB, free: 4.285 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/0.17, allocations: 12.05 kB / 481.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006863/0.1707, allocations: 484.5 kB / 481.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003594/0.171, allocations: 0.7298 MB / 482.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.39e-05/0.1711, allocations: 27.42 kB / 482.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1711, allocations: 0 / 482.4 MB, free: 2.98 MB / 350.1 MB Notification: Performance of Templates: time 0.006705/0.1778, allocations: 3.776 MB / 486.2 MB, free: 15.2 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbers.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomNumbersCalcHelperMain.o] Error 1