Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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.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.TestSpecial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001481/0.00148, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001587/0.001588, allocations: 189.4 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3893/0.3893, allocations: 39.94 MB / 309.4 MB, free: 9.328 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 63.91 kB / 377.1 MB, free: 13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1325, allocations: 56.88 MB / 434 MB, free: 4.023 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002327/0.1348, allocations: 0.5597 MB / 434.6 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003391/0.1382, allocations: 2.022 MB / 436.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.142e-05/0.1383, allocations: 0 / 436.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.066e-05/0.1384, allocations: 0 / 436.6 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.752e-06/0.1384, allocations: 4 kB / 436.6 MB, free: 1.41 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:909:5-992:16:writable] Warning: Pure function ‘ModelicaTest.Math.Random.special‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.1405, allocations: 463.1 kB / 437 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.457e-05/0.1406, allocations: 4 kB / 437 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.782e-05/0.1406, allocations: 7.984 kB / 437 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.97e-05/0.1407, allocations: 0 / 437 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.823e-05/0.1407, allocations: 7.938 kB / 437 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.165e-05/0.1407, allocations: 0 / 437 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001538/0.1423, allocations: 0.6631 MB / 437.7 MB, free: 280 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.612e-05/0.1423, allocations: 0 / 437.7 MB, free: 280 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.687e-05/0.1423, allocations: 0 / 437.7 MB, free: 280 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1434, allocations: 399.1 kB / 438.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1434, allocations: 3.938 kB / 438.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.188e-06/0.1434, allocations: 3.984 kB / 438.1 MB, free: 15.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1434, allocations: 4 kB / 438.1 MB, free: 15.87 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005181/0.144, allocations: 401.3 kB / 438.5 MB, free: 15.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.144, allocations: 11.89 kB / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.1441, allocations: 0.9375 kB / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.725e-05/0.1442, allocations: 160.4 kB / 438.7 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1442, allocations: 4.375 kB / 438.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.137e-05/0.1442, allocations: 8.312 kB / 438.7 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.504e-05/0.1443, allocations: 34.02 kB / 438.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.1443, allocations: 0 / 438.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.1443, allocations: 0 / 438.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1443, allocations: 7.938 kB / 438.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.177e-05/0.1444, allocations: 7.984 kB / 438.7 MB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.1445, allocations: 141.7 kB / 438.9 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.504e-05/0.1446, allocations: 22.61 kB / 438.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.582e-05/0.1446, allocations: 8.797 kB / 438.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.458e-06/0.1446, allocations: 0 / 438.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.1447, allocations: 64.2 kB / 439 MB, free: 14.84 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.1447, allocations: 4.062 kB / 439 MB, free: 14.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001702/0.1448, allocations: 63.3 kB / 439 MB, free: 14.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.1449, allocations: 81.11 kB / 439.1 MB, free: 14.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.254e-05/0.145, allocations: 93.98 kB / 439.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.145, allocations: 29.64 kB / 439.2 MB, free: 14.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.199e-05/0.145, allocations: 80.14 kB / 439.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.145, allocations: 0 / 439.3 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.611e-05/0.1451, allocations: 17.72 kB / 439.3 MB, free: 14.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.1452, allocations: 314.8 kB / 439.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.1452, allocations: 3.938 kB / 439.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.009e-06/0.1452, allocations: 0 / 439.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.162e-05/0.1453, allocations: 64.33 kB / 439.7 MB, free: 14.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1453, allocations: 0 / 439.7 MB, free: 14.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.592e-05/0.1453, allocations: 63.41 kB / 439.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.1454, allocations: 41.62 kB / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1454, allocations: 0 / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.1454, allocations: 0 / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.1454, allocations: 0 / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1454, allocations: 0 / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.455e-05/0.1454, allocations: 0 / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-06/0.1455, allocations: 0 / 439.8 MB, free: 13.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 9.744e-05/0.1456, allocations: 143.5 kB / 439.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-06/0.1456, allocations: 3.938 kB / 439.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.318e-06/0.1456, allocations: 3.125 kB / 440 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1456, allocations: 0 / 440 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.1456, allocations: 3.984 kB / 440 MB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1456, allocations: 4 kB / 440 MB, free: 13.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.1457, allocations: 145.7 kB / 440.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1457, allocations: 0 / 440.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1457, allocations: 0 / 440.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.1457, allocations: 7.938 kB / 440.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.1458, allocations: 0 / 440.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1458, allocations: 4 kB / 440.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-07/0.1458, allocations: 0 / 440.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.983e-05/0.1459, allocations: 86.83 kB / 440.2 MB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.918e-05/0.1459, allocations: 85.05 kB / 440.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.1459, allocations: 3.938 kB / 440.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.088e-05/0.146, allocations: 3.984 kB / 440.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.111e-05/0.146, allocations: 4.031 kB / 440.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.146, allocations: 11.98 kB / 440.3 MB, free: 13.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.659e-05/0.146, allocations: 83.16 kB / 440.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.146, allocations: 0 / 440.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004216/0.1464, allocations: 120 kB / 440.5 MB, free: 13.1 MB / 382.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0008114/0.1473, allocations: 302 kB / 440.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001064/0.1474, allocations: 59.41 kB / 440.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1474, allocations: 0 / 440.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.6e-05/0.1474, allocations: 55.41 kB / 440.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.1476, allocations: 0 / 440.9 MB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002198/0.1478, allocations: 93.03 kB / 441 MB, free: 12.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.1481, allocations: 0.669 MB / 441.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.303e-06/0.1481, allocations: 4 kB / 441.7 MB, free: 11.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.189e-05/0.1481, allocations: 7.438 kB / 441.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1481, allocations: 0 / 441.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of Templates: time 0.006449/0.1546, allocations: 3.379 MB / 445.1 MB, free: 8.465 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1)