Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005851/0.005851, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001238/0.001238, allocations: 196.7 kB / 16.67 MB, free: 5.977 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.587/1.587, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.3376/0.3376, allocations: 39.95 MB / 309.8 MB, free: 9.41 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.001727/0.001727, allocations: 71.89 kB / 435.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3981/0.3998, allocations: 56.86 MB / 492.6 MB, free: 19.36 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001809/0.4017, allocations: 0.5086 MB / 493.2 MB, free: 19.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.4049, allocations: 2.068 MB / 495.2 MB, free: 17.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.329e-05/0.405, allocations: 4 kB / 495.2 MB, free: 17.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.545e-05/0.405, allocations: 0 / 495.2 MB, free: 17.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.253e-06/0.405, allocations: 0 / 495.2 MB, free: 17.59 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/Math.mo:994:5-1076:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001781/0.4068, allocations: 488.2 kB / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.267e-05/0.4069, allocations: 1.406 kB / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.914e-05/0.4069, allocations: 2.25 kB / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.934e-05/0.4069, allocations: 1.188 kB / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.095e-05/0.407, allocations: 1.562 kB / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.995e-06/0.407, allocations: 0 / 495.7 MB, free: 17.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.4083, allocations: 0.5971 MB / 496.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.101e-05/0.4083, allocations: 0 / 496.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.098e-05/0.4083, allocations: 1.844 kB / 496.3 MB, free: 17.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007387/0.4091, allocations: 377.1 kB / 496.7 MB, free: 17.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.351e-06/0.4091, allocations: 1.312 kB / 496.7 MB, free: 17.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4091, allocations: 4 kB / 496.7 MB, free: 17.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.4091, allocations: 0.5625 kB / 496.7 MB, free: 17.09 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.0004764/0.4096, allocations: 410.1 kB / 497.1 MB, free: 16.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.4096, allocations: 13.83 kB / 497.1 MB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.283e-05/0.4097, allocations: 1.688 kB / 497.1 MB, free: 16.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.434e-05/0.4098, allocations: 162.7 kB / 497.3 MB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.4098, allocations: 384 / 497.3 MB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.4098, allocations: 1.344 kB / 497.3 MB, free: 16.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001145/0.4099, allocations: 37.81 kB / 497.3 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.4099, allocations: 0 / 497.3 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.41, allocations: 5.141 kB / 497.3 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.41, allocations: 0 / 497.3 MB, free: 16.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.33e-05/0.41, allocations: 5.625 kB / 497.3 MB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001415/0.4101, allocations: 149.2 kB / 497.5 MB, free: 16.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.718e-05/0.4102, allocations: 20.45 kB / 497.5 MB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.977e-05/0.4102, allocations: 6.906 kB / 497.5 MB, free: 16.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.207e-06/0.4102, allocations: 5.188 kB / 497.5 MB, free: 16.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.229e-05/0.4103, allocations: 61.2 kB / 497.5 MB, free: 16.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.4103, allocations: 0 / 497.5 MB, free: 16.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001972/0.4105, allocations: 65.7 kB / 497.6 MB, free: 16.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.4106, allocations: 82.83 kB / 497.7 MB, free: 15.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.893e-05/0.4106, allocations: 93.8 kB / 497.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.4106, allocations: 26.86 kB / 497.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.26e-05/0.4106, allocations: 80.97 kB / 497.9 MB, free: 15.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.4107, allocations: 5.125 kB / 497.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.4107, allocations: 16.7 kB / 497.9 MB, free: 15.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/0.4108, allocations: 311.5 kB / 498.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.4108, allocations: 1.125 kB / 498.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.953e-06/0.4108, allocations: 1.125 kB / 498.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.331e-05/0.4109, allocations: 64.73 kB / 498.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4109, allocations: 5.156 kB / 498.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.691e-05/0.4109, allocations: 64.16 kB / 498.3 MB, free: 15.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.411, allocations: 37.73 kB / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.411, allocations: 0 / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.411, allocations: 0 / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.514e-06/0.411, allocations: 2.031 kB / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.411, allocations: 0 / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.84e-05/0.4111, allocations: 4 kB / 498.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.4111, allocations: 2.266 kB / 498.4 MB, free: 15.22 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.431e-05/0.4112, allocations: 135.3 kB / 498.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.04e-05/0.4112, allocations: 12.58 kB / 498.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.459e-05/0.4112, allocations: 3.828 kB / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-07/0.4112, allocations: 1.094 kB / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4112, allocations: 0 / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.4112, allocations: 1.375 kB / 498.5 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.733e-05/0.4113, allocations: 145.2 kB / 498.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.4113, allocations: 0 / 498.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.4113, allocations: 0.7969 kB / 498.7 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4113, allocations: 4.938 kB / 498.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.4113, allocations: 1.75 kB / 498.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.4113, allocations: 4.797 kB / 498.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4113, allocations: 3.938 kB / 498.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.7e-05/0.4114, allocations: 88.61 kB / 498.8 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.132e-05/0.4115, allocations: 77.91 kB / 498.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.4115, allocations: 5.984 kB / 498.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.051e-05/0.4115, allocations: 1.25 kB / 498.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.583e-05/0.4115, allocations: 0.6562 kB / 498.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.4115, allocations: 5.281 kB / 498.9 MB, free: 14.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.424e-05/0.4115, allocations: 75.28 kB / 498.9 MB, free: 14.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4116, allocations: 0 / 498.9 MB, free: 14.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004614/0.412, allocations: 131 kB / 499.1 MB, free: 14.55 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.0007565/0.4128, allocations: 308.2 kB / 499.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.92e-05/0.4129, allocations: 68.98 kB / 499.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.4129, allocations: 1.438 kB / 499.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.992e-05/0.4129, allocations: 58.78 kB / 499.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.4131, allocations: 2.109 kB / 499.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002126/0.4133, allocations: 83.83 kB / 499.6 MB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/0.4135, allocations: 0.6708 MB / 0.4885 GB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.961e-06/0.4135, allocations: 0 / 0.4885 GB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.852e-05/0.4136, allocations: 9.672 kB / 0.4885 GB, free: 13.45 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4136, allocations: 4.125 kB / 0.4885 GB, free: 13.45 MB / 382.1 MB Notification: Performance of Templates: time 0.009091/0.4227, allocations: 3.365 MB / 0.4918 GB, free: 12.82 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1)