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.0008461/0.0008458, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008655/0.0008657, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.761/1.761, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.3763/0.3763, allocations: 40 MB / 310.4 MB, free: 9.902 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.00055/0.0005504, allocations: 12 kB / 378.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1461, allocations: 57.96 MB / 436.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0006568/0.1468, allocations: 230.1 kB / 437 MB, free: 2.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002516/0.1494, allocations: 1.941 MB / 439 MB, free: 384 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.36e-05/0.1494, allocations: 0 / 439 MB, free: 384 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.1494, allocations: 0 / 439 MB, free: 384 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.931e-06/0.1494, allocations: 3.938 kB / 439 MB, free: 380 kB / 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.001085/0.1505, allocations: 387.3 kB / 439.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.393e-05/0.1505, allocations: 0 / 439.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.145e-05/0.1506, allocations: 8 kB / 439.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.439e-05/0.1506, allocations: 7.938 kB / 439.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.693e-05/0.1506, allocations: 3.984 kB / 439.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.731e-06/0.1507, allocations: 0 / 439.4 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009325/0.1516, allocations: 0.6629 MB / 440 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.312e-06/0.1516, allocations: 0 / 440 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.701e-05/0.1516, allocations: 25.7 kB / 440 MB, free: 15.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.152, allocations: 243.6 kB / 440.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.152, allocations: 3.938 kB / 440.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.152, allocations: 0 / 440.3 MB, free: 15.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.152, allocations: 4 kB / 440.3 MB, free: 15.03 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.0003902/0.1524, allocations: 405 kB / 440.7 MB, free: 14.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.1525, allocations: 12.03 kB / 440.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.1525, allocations: 0 / 440.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.1526, allocations: 159.1 kB / 440.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.1526, allocations: 0 / 440.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.1526, allocations: 3.984 kB / 440.9 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.732e-05/0.1527, allocations: 33.69 kB / 440.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.1528, allocations: 3.938 kB / 440.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.1528, allocations: 4 kB / 440.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1528, allocations: 3.953 kB / 440.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.664e-05/0.1528, allocations: 4 kB / 440.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001229/0.1529, allocations: 145.7 kB / 441.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.499e-05/0.153, allocations: 14.58 kB / 441.1 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.411e-05/0.153, allocations: 12.94 kB / 441.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-06/0.153, allocations: 0 / 441.1 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/0.1531, allocations: 60.27 kB / 441.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1531, allocations: 0 / 441.1 MB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.1532, allocations: 67.25 kB / 441.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.91e-05/0.1533, allocations: 85.06 kB / 441.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.387e-05/0.1534, allocations: 93.84 kB / 441.4 MB, free: 13.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.1534, allocations: 33.64 kB / 441.4 MB, free: 13.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.699e-05/0.1534, allocations: 80.14 kB / 441.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.935e-05/0.1535, allocations: 0 / 441.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.1535, allocations: 4.125 kB / 441.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.1536, allocations: 310.8 kB / 441.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.774e-06/0.1536, allocations: 0 / 441.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-06/0.1536, allocations: 4 kB / 441.8 MB, free: 13.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.723e-05/0.1536, allocations: 25.7 kB / 441.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1536, allocations: 0 / 441.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.439e-05/0.1537, allocations: 71.33 kB / 441.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.881e-05/0.1537, allocations: 29.7 kB / 441.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1538, allocations: 8.078 kB / 441.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.538e-06/0.1538, allocations: 0 / 441.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.71e-07/0.1538, allocations: 4 kB / 441.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1538, allocations: 0 / 441.9 MB, free: 13.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.709e-05/0.1538, allocations: 3.953 kB / 441.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.204e-06/0.1538, allocations: 0 / 441.9 MB, free: 13.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.61e-05/0.1539, allocations: 135.5 kB / 442.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.221e-06/0.1539, allocations: 0 / 442.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.196e-05/0.1539, allocations: 7.109 kB / 442.1 MB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.154, allocations: 4 kB / 442.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.154, allocations: 4 kB / 442.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.154, allocations: 3.938 kB / 442.1 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.087e-05/0.1541, allocations: 149.9 kB / 442.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1541, allocations: 0 / 442.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.1541, allocations: 0 / 442.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.1541, allocations: 0 / 442.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.1541, allocations: 4 kB / 442.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1541, allocations: 0 / 442.2 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.1541, allocations: 3.984 kB / 442.2 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000104/0.1542, allocations: 98.73 kB / 442.3 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.207e-05/0.1543, allocations: 77.11 kB / 442.4 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.503e-05/0.1543, allocations: 7.984 kB / 442.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.316e-06/0.1543, allocations: 0 / 442.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.1543, allocations: 0 / 442.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.289e-06/0.1543, allocations: 0 / 442.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.792e-05/0.1544, allocations: 79.22 kB / 442.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1544, allocations: 0 / 442.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.1547, allocations: 128 kB / 442.6 MB, free: 12.33 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 (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.0007405/0.1555, allocations: 306.7 kB / 442.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.445e-05/0.1556, allocations: 67.41 kB / 443 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1556, allocations: 0 / 443 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.073e-05/0.1556, allocations: 59.34 kB / 443 MB, free: 11.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.1558, allocations: 3.953 kB / 443.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000169/0.1559, allocations: 78.75 kB / 443.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.1562, allocations: 0.6692 MB / 443.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.1562, allocations: 0 / 443.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.407e-06/0.1562, allocations: 7.438 kB / 443.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of SimCode: time 2.304e-06/0.1563, allocations: 4.125 kB / 443.8 MB, free: 11.06 MB / 382.1 MB Notification: Performance of Templates: time 0.006713/0.163, allocations: 3.397 MB / 447.2 MB, free: 7.668 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: