Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.00123, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001766/0.001766, allocations: 168.7 kB / 15.95 MB, free: 200 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.778/1.778, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.4118/0.4118, allocations: 40.01 MB / 310.4 MB, free: 9.973 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.0008681/0.0008682, allocations: 12 kB / 378.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1765, allocations: 57.96 MB / 436.8 MB, free: 2.566 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0007115/0.1773, allocations: 230.1 kB / 437 MB, free: 2.344 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00346/0.1808, allocations: 2.206 MB / 439.2 MB, free: 116 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.034e-05/0.1808, allocations: 4 kB / 439.2 MB, free: 112 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.695e-05/0.1808, allocations: 0 / 439.2 MB, free: 112 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.853e-06/0.1808, allocations: 0 / 439.2 MB, free: 112 kB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:1078:5-1175:31:writable] Warning: Pure function ‘ModelicaTest.Math.Random.truncatedDistributions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.1822, allocations: 478.7 kB / 439.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.281e-05/0.1822, allocations: 4 kB / 439.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.348e-05/0.1823, allocations: 0 / 439.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.994e-05/0.1823, allocations: 0 / 439.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.974e-05/0.1823, allocations: 0 / 439.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.052e-06/0.1824, allocations: 4 kB / 439.7 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.1835, allocations: 0.6979 MB / 440.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.655e-06/0.1835, allocations: 0 / 440.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.166e-05/0.1835, allocations: 29.7 kB / 440.4 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.1839, allocations: 295.7 kB / 440.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.184, allocations: 0 / 440.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.184, allocations: 4 kB / 440.7 MB, free: 14.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.184, allocations: 0 / 440.7 MB, free: 14.61 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.0004696/0.1845, allocations: 425.1 kB / 441.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.1845, allocations: 16.03 kB / 441.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.277e-05/0.1845, allocations: 0 / 441.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.917e-05/0.1847, allocations: 163.1 kB / 441.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1847, allocations: 0 / 441.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.1847, allocations: 0 / 441.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.977e-05/0.1848, allocations: 29.7 kB / 441.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1848, allocations: 3.938 kB / 441.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-06/0.1848, allocations: 0 / 441.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1848, allocations: 7.891 kB / 441.4 MB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.135e-05/0.1849, allocations: 8 kB / 441.4 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.185, allocations: 153.6 kB / 441.5 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.292e-05/0.1851, allocations: 14.58 kB / 441.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.744e-05/0.1851, allocations: 8.953 kB / 441.5 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.015e-06/0.1851, allocations: 0 / 441.5 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.577e-05/0.1852, allocations: 56.27 kB / 441.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1852, allocations: 0 / 441.6 MB, free: 13.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001974/0.1854, allocations: 79.31 kB / 441.7 MB, free: 13.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.1854, allocations: 81.06 kB / 441.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.089e-05/0.1855, allocations: 89.86 kB / 441.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.1855, allocations: 29.7 kB / 441.9 MB, free: 13.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.734e-05/0.1855, allocations: 80.14 kB / 441.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.1856, allocations: 0 / 441.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.1856, allocations: 0 / 441.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1857, allocations: 314.8 kB / 442.3 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.068e-05/0.1858, allocations: 4.125 kB / 442.3 MB, free: 12.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.044e-06/0.1858, allocations: 4 kB / 442.3 MB, free: 12.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.499e-05/0.1858, allocations: 25.7 kB / 442.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1858, allocations: 3.938 kB / 442.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.398e-05/0.1859, allocations: 67.33 kB / 442.4 MB, free: 12.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.97e-05/0.1859, allocations: 29.7 kB / 442.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.186, allocations: 0 / 442.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.186, allocations: 0 / 442.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.186, allocations: 4 kB / 442.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.186, allocations: 96 / 442.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.104e-05/0.186, allocations: 7.953 kB / 442.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.277e-06/0.186, allocations: 0 / 442.4 MB, free: 12.68 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 0.0001232/0.1862, allocations: 143.5 kB / 442.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.623e-06/0.1862, allocations: 0 / 442.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.19e-05/0.1862, allocations: 3.125 kB / 442.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.31e-07/0.1862, allocations: 0 / 442.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1862, allocations: 0 / 442.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1862, allocations: 0 / 442.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.1864, allocations: 161.5 kB / 442.7 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1864, allocations: 4 kB / 442.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.084e-06/0.1864, allocations: 4 kB / 442.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.1864, allocations: 0 / 442.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.1864, allocations: 0 / 442.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1864, allocations: 0 / 442.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1864, allocations: 0 / 442.7 MB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.1865, allocations: 98.72 kB / 442.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.277e-05/0.1866, allocations: 77.11 kB / 442.9 MB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.1866, allocations: 8.031 kB / 442.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.065e-06/0.1866, allocations: 0 / 442.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.014e-05/0.1866, allocations: 0 / 442.9 MB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.1867, allocations: 3.984 kB / 442.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.1867, allocations: 75.28 kB / 443 MB, free: 12 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1867, allocations: 0 / 443 MB, free: 12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004687/0.1872, allocations: 156 kB / 443.1 MB, free: 11.85 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.0008033/0.188, allocations: 342.7 kB / 443.4 MB, free: 11.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001338/0.1881, allocations: 63.33 kB / 443.5 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1881, allocations: 0 / 443.5 MB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.386e-05/0.1882, allocations: 59.34 kB / 443.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.1883, allocations: 3.953 kB / 443.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002414/0.1886, allocations: 82.89 kB / 443.7 MB, free: 11.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1889, allocations: 0.6731 MB / 444.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.063e-06/0.189, allocations: 0 / 444.3 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.62e-05/0.189, allocations: 11.44 kB / 444.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.189, allocations: 0 / 444.3 MB, free: 10.54 MB / 382.1 MB Notification: Performance of Templates: time 0.007593/0.1966, allocations: 3.49 MB / 447.8 MB, free: 7.051 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) Environment - environmentSimulation: