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.008306/0.008307, allocations: 101.9 kB / 15.73 MB, free: 6.012 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.001308/0.001308, allocations: 193.5 kB / 16.67 MB, free: 5.949 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.578/1.578, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.3222/0.3222, allocations: 39.93 MB / 309.8 MB, free: 9.309 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.001453/0.001453, allocations: 71.89 kB / 435.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3962, allocations: 56.87 MB / 492.6 MB, free: 19.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002466/0.3988, allocations: 0.4975 MB / 493.1 MB, free: 19.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003568/0.4024, allocations: 2.335 MB / 495.5 MB, free: 17.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.515e-05/0.4024, allocations: 0 / 495.5 MB, free: 17.49 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.4025, allocations: 0 / 495.5 MB, free: 17.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.098e-05/0.4025, allocations: 1.375 kB / 495.5 MB, free: 17.49 MB / 382.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.00195/0.4044, allocations: 0.5657 MB / 496 MB, free: 17.26 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.147e-05/0.4045, allocations: 1.922 kB / 496 MB, free: 17.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.607e-05/0.4046, allocations: 1.984 kB / 496.1 MB, free: 17.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.946e-05/0.4046, allocations: 7.922 kB / 496.1 MB, free: 17.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.923e-05/0.4046, allocations: 2.016 kB / 496.1 MB, free: 17.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.622e-06/0.4046, allocations: 0 / 496.1 MB, free: 17.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.4059, allocations: 0.6882 MB / 496.7 MB, free: 17.03 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.063e-05/0.4059, allocations: 5.094 kB / 496.8 MB, free: 17.03 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.87e-05/0.4059, allocations: 9.484 kB / 496.8 MB, free: 17.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007951/0.4067, allocations: 445.6 kB / 497.2 MB, free: 16.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.4067, allocations: 2.078 kB / 497.2 MB, free: 16.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.4067, allocations: 0 / 497.2 MB, free: 16.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.4068, allocations: 0 / 497.2 MB, free: 16.89 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.0005386/0.4073, allocations: 429.1 kB / 497.6 MB, free: 16.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/0.4074, allocations: 16.95 kB / 497.6 MB, free: 16.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.295e-05/0.4074, allocations: 9.672 kB / 497.6 MB, free: 16.44 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.363e-05/0.4075, allocations: 164.5 kB / 497.8 MB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.4075, allocations: 384 / 497.8 MB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.4075, allocations: 2.578 kB / 497.8 MB, free: 16.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.4077, allocations: 33.73 kB / 497.8 MB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.4077, allocations: 3.984 kB / 497.8 MB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.4077, allocations: 0 / 497.8 MB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.4077, allocations: 1.094 kB / 497.8 MB, free: 16.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.148e-05/0.4078, allocations: 9.344 kB / 497.9 MB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001218/0.4079, allocations: 148.5 kB / 498 MB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.592e-05/0.4079, allocations: 21 kB / 498 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.408, allocations: 6.203 kB / 498 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.408, allocations: 1.281 kB / 498 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.453e-05/0.408, allocations: 62.12 kB / 498.1 MB, free: 15.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.408, allocations: 0 / 498.1 MB, free: 15.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002252/0.4083, allocations: 70.48 kB / 498.2 MB, free: 15.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.4083, allocations: 81.05 kB / 498.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.589e-05/0.4084, allocations: 90.42 kB / 498.3 MB, free: 15.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.4084, allocations: 26.7 kB / 498.4 MB, free: 15.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.629e-05/0.4084, allocations: 80.14 kB / 498.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.4084, allocations: 1.312 kB / 498.4 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.999e-05/0.4085, allocations: 13.05 kB / 498.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.563e-05/0.4085, allocations: 319.8 kB / 498.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.342e-05/0.4086, allocations: 1.312 kB / 498.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.935e-06/0.4086, allocations: 1.797 kB / 498.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.585e-05/0.4086, allocations: 60.11 kB / 498.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.4086, allocations: 1.375 kB / 498.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.555e-05/0.4087, allocations: 63.42 kB / 498.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.4088, allocations: 36.64 kB / 498.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4088, allocations: 0 / 498.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.4088, allocations: 4.828 kB / 498.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.4088, allocations: 5.562 kB / 498.9 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.4088, allocations: 0 / 498.9 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.883e-05/0.4088, allocations: 0 / 498.9 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.4089, allocations: 2.109 kB / 498.9 MB, free: 15 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 8.087e-05/0.4089, allocations: 143.2 kB / 499.1 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.598e-06/0.409, allocations: 8.484 kB / 499.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.6e-05/0.409, allocations: 3.969 kB / 499.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.409, allocations: 1.438 kB / 499.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.409, allocations: 0 / 499.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.409, allocations: 4 kB / 499.1 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.377e-05/0.4091, allocations: 145.1 kB / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.4091, allocations: 2.203 kB / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.425e-06/0.4091, allocations: 0 / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4091, allocations: 7.875 kB / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.4091, allocations: 2.172 kB / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.4091, allocations: 0 / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4092, allocations: 0 / 499.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.893e-05/0.4092, allocations: 97.8 kB / 499.3 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.535e-05/0.4093, allocations: 77.72 kB / 499.4 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.4093, allocations: 5.859 kB / 499.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.4093, allocations: 0.875 kB / 499.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.511e-05/0.4094, allocations: 1.922 kB / 499.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.925e-06/0.4094, allocations: 0 / 499.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.054e-05/0.4094, allocations: 84.25 kB / 499.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4094, allocations: 0 / 499.5 MB, free: 14.35 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006154/0.41, allocations: 154.5 kB / 499.7 MB, free: 14.31 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.0009114/0.4109, allocations: 333.9 kB / 500 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001352/0.4111, allocations: 57.59 kB / 0.4883 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4111, allocations: 0 / 0.4883 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.037e-05/0.4111, allocations: 64.17 kB / 0.4884 GB, free: 14.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.4113, allocations: 10.33 kB / 0.4884 GB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001945/0.4115, allocations: 91.67 kB / 0.4885 GB, free: 13.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/0.4117, allocations: 0.6711 MB / 0.4891 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.257e-06/0.4117, allocations: 0.7031 kB / 0.4891 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.513e-05/0.4117, allocations: 8.531 kB / 0.4891 GB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.4117, allocations: 4.906 kB / 0.4891 GB, free: 13.2 MB / 382.1 MB Notification: Performance of Templates: time 0.008343/0.4201, allocations: 3.52 MB / 0.4926 GB, free: 12.38 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)