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.001673/0.001673, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002503/0.002503, allocations: 195.3 kB / 16.14 MB, free: 6.703 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.613/1.613, allocations: 205.1 MB / 222 MB, free: 4.746 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.3806/0.3806, allocations: 39.93 MB / 309.3 MB, free: 9.289 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.001341/0.001342, allocations: 68.47 kB / 376.9 MB, free: 13.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1258, allocations: 56.87 MB / 433.8 MB, free: 4.141 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001738/0.1276, allocations: 0.5713 MB / 434.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003338/0.131, allocations: 2.412 MB / 436.8 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.164e-05/0.131, allocations: 0 / 436.8 MB, free: 1.129 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.967e-05/0.131, allocations: 3.938 kB / 436.8 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.46e-06/0.131, allocations: 0 / 436.8 MB, free: 1.125 MB / 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.001364/0.1324, allocations: 470.9 kB / 437.2 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.841e-05/0.1325, allocations: 7.938 kB / 437.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.047e-05/0.1325, allocations: 0 / 437.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.589e-05/0.1325, allocations: 0 / 437.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.641e-05/0.1326, allocations: 0 / 437.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.1326, allocations: 0 / 437.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.1337, allocations: 0.7252 MB / 438 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.076e-06/0.1337, allocations: 0 / 438 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.096e-05/0.1337, allocations: 0 / 438 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.1343, allocations: 459.3 kB / 438.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1343, allocations: 4 kB / 438.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1343, allocations: 0 / 438.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.596e-06/0.1344, allocations: 4 kB / 438.4 MB, free: 15.47 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.000528/0.1349, allocations: 433.2 kB / 438.9 MB, free: 15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1349, allocations: 11.97 kB / 438.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.135, allocations: 0.9375 kB / 438.9 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.1351, allocations: 164.4 kB / 439 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.1351, allocations: 4.375 kB / 439 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.1351, allocations: 384 / 439 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.319e-05/0.1352, allocations: 38 kB / 439.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.641e-06/0.1352, allocations: 0 / 439.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.1352, allocations: 4 kB / 439.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.1352, allocations: 0 / 439.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.88e-05/0.1353, allocations: 0 / 439.1 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.1354, allocations: 145.6 kB / 439.2 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.846e-05/0.1354, allocations: 22.55 kB / 439.2 MB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.492e-05/0.1355, allocations: 12.84 kB / 439.3 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.121e-06/0.1355, allocations: 4 kB / 439.3 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.1355, allocations: 64.27 kB / 439.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.382e-06/0.1355, allocations: 0 / 439.3 MB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001585/0.1357, allocations: 59.41 kB / 439.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.45e-05/0.1357, allocations: 81.05 kB / 439.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.968e-05/0.1358, allocations: 93.84 kB / 439.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.1358, allocations: 25.7 kB / 439.6 MB, free: 14.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.242e-05/0.1359, allocations: 88.27 kB / 439.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.656e-05/0.1359, allocations: 0 / 439.7 MB, free: 14.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.1359, allocations: 13.72 kB / 439.7 MB, free: 14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.136, allocations: 314.8 kB / 440 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.1361, allocations: 0 / 440 MB, free: 13.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-06/0.1361, allocations: 4 kB / 440 MB, free: 13.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.526e-05/0.1361, allocations: 56.27 kB / 440 MB, free: 13.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1361, allocations: 0 / 440 MB, free: 13.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.587e-05/0.1362, allocations: 71.45 kB / 440.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.1362, allocations: 41.23 kB / 440.1 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1363, allocations: 3.938 kB / 440.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.1363, allocations: 3.984 kB / 440.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.1363, allocations: 0 / 440.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1363, allocations: 0 / 440.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.553e-05/0.1363, allocations: 0 / 440.2 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-06/0.1363, allocations: 3.938 kB / 440.2 MB, free: 13.48 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 7.842e-05/0.1364, allocations: 139.5 kB / 440.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-06/0.1364, allocations: 7.969 kB / 440.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.181e-05/0.1364, allocations: 3.125 kB / 440.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1365, allocations: 0 / 440.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1365, allocations: 4 kB / 440.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.844e-06/0.1365, allocations: 0 / 440.3 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.456e-05/0.1366, allocations: 153.6 kB / 440.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.1366, allocations: 4 kB / 440.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1366, allocations: 0 / 440.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.1366, allocations: 3.938 kB / 440.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.1366, allocations: 4 kB / 440.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.1366, allocations: 4 kB / 440.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.1366, allocations: 0 / 440.5 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.03e-05/0.1367, allocations: 94.77 kB / 440.6 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.011e-05/0.1367, allocations: 77.11 kB / 440.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.1368, allocations: 3.938 kB / 440.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.1368, allocations: 0 / 440.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.12e-05/0.1368, allocations: 0 / 440.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.1368, allocations: 4 kB / 440.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.365e-05/0.1368, allocations: 83.31 kB / 440.7 MB, free: 12.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1368, allocations: 0 / 440.7 MB, free: 12.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004023/0.1372, allocations: 152 kB / 440.9 MB, free: 12.64 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.0007878/0.138, allocations: 338.4 kB / 441.2 MB, free: 12.31 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000109/0.1382, allocations: 67.39 kB / 441.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1382, allocations: 0 / 441.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.056e-05/0.1382, allocations: 55.41 kB / 441.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001304/0.1384, allocations: 4 kB / 441.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001821/0.1385, allocations: 78.7 kB / 441.4 MB, free: 12.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.1388, allocations: 0.677 MB / 442.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.242e-06/0.1388, allocations: 0 / 442.1 MB, free: 11.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.023e-05/0.1388, allocations: 7.438 kB / 442.1 MB, free: 11.35 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1388, allocations: 4.125 kB / 442.1 MB, free: 11.35 MB / 382.1 MB Notification: Performance of Templates: time 0.006382/0.1452, allocations: 3.503 MB / 445.6 MB, free: 7.84 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (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)