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.009677/0.009677, allocations: 104.8 kB / 15.74 MB, free: 6.496 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: 197.2 kB / 16.68 MB, free: 6.371 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.63/1.63, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.3445/0.3445, allocations: 39.94 MB / 309.8 MB, free: 9.465 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.00151/0.00151, allocations: 67.91 kB / 435.8 MB, free: 2.473 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3723, allocations: 56.88 MB / 492.7 MB, free: 19.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001941/0.3743, allocations: 0.4967 MB / 493.1 MB, free: 19.13 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003857/0.3782, allocations: 2.029 MB / 495.2 MB, free: 17.7 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.477e-05/0.3783, allocations: 5.125 kB / 495.2 MB, free: 17.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.89e-05/0.3784, allocations: 0 / 495.2 MB, free: 17.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.125e-06/0.3784, allocations: 3.938 kB / 495.2 MB, free: 17.69 MB / 382.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.002039/0.3805, allocations: 499.3 kB / 495.7 MB, free: 17.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.363e-05/0.3806, allocations: 5.25 kB / 495.7 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.275e-05/0.3806, allocations: 1.703 kB / 495.7 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.3806, allocations: 5.844 kB / 495.7 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.878e-05/0.3807, allocations: 0 / 495.7 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.184e-06/0.3807, allocations: 1.188 kB / 495.7 MB, free: 17.5 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.3817, allocations: 0.6264 MB / 496.3 MB, free: 17.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.757e-06/0.3818, allocations: 0 / 496.3 MB, free: 17.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.251e-05/0.3818, allocations: 1.062 kB / 496.3 MB, free: 17.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007255/0.3825, allocations: 381 kB / 496.7 MB, free: 17.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3825, allocations: 1.062 kB / 496.7 MB, free: 17.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3825, allocations: 0 / 496.7 MB, free: 17.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.3826, allocations: 3.938 kB / 496.7 MB, free: 17.2 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.0004702/0.383, allocations: 410.5 kB / 497.1 MB, free: 16.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.3831, allocations: 13.11 kB / 497.1 MB, free: 16.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.541e-05/0.3831, allocations: 2.188 kB / 497.1 MB, free: 16.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.062e-05/0.3832, allocations: 161.3 kB / 497.3 MB, free: 16.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3832, allocations: 1.219 kB / 497.3 MB, free: 16.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.3832, allocations: 1.531 kB / 497.3 MB, free: 16.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.3834, allocations: 33.61 kB / 497.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.3834, allocations: 0 / 497.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.3834, allocations: 5.219 kB / 497.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.3834, allocations: 1.078 kB / 497.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.006e-05/0.3834, allocations: 1.281 kB / 497.3 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000141/0.3836, allocations: 156.5 kB / 497.5 MB, free: 16.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.7e-05/0.3836, allocations: 17.23 kB / 497.5 MB, free: 16.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.824e-05/0.3837, allocations: 6.734 kB / 497.5 MB, free: 16.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.663e-06/0.3837, allocations: 0 / 497.5 MB, free: 16.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.425e-05/0.3837, allocations: 66.19 kB / 497.6 MB, free: 16.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3837, allocations: 0 / 497.6 MB, free: 16.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002156/0.384, allocations: 69.16 kB / 497.6 MB, free: 16.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.561e-05/0.384, allocations: 79.42 kB / 497.7 MB, free: 16.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.728e-05/0.384, allocations: 89.86 kB / 497.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.384, allocations: 27.02 kB / 497.8 MB, free: 15.94 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.652e-05/0.3841, allocations: 80.14 kB / 497.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.3841, allocations: 4.922 kB / 497.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.207e-05/0.3841, allocations: 16.84 kB / 497.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.361e-05/0.3842, allocations: 315.9 kB / 498.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.202e-05/0.3842, allocations: 1.094 kB / 498.2 MB, free: 15.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.403e-06/0.3842, allocations: 5.094 kB / 498.2 MB, free: 15.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.3843, allocations: 61.09 kB / 498.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3843, allocations: 0 / 498.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.613e-05/0.3843, allocations: 65.2 kB / 498.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.3844, allocations: 36.52 kB / 498.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.3844, allocations: 4 kB / 498.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.3844, allocations: 0 / 498.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.944e-06/0.3844, allocations: 1.531 kB / 498.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.3844, allocations: 0.9844 kB / 498.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.15e-05/0.3845, allocations: 8 kB / 498.4 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.3845, allocations: 1.25 kB / 498.4 MB, free: 15.33 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.16e-05/0.3845, allocations: 135 kB / 498.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.3846, allocations: 5.797 kB / 498.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.757e-05/0.3846, allocations: 8.203 kB / 498.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3846, allocations: 0 / 498.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3846, allocations: 1.281 kB / 498.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.3846, allocations: 0 / 498.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.785e-05/0.3847, allocations: 145 kB / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3847, allocations: 0.7031 kB / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.643e-06/0.3847, allocations: 1.406 kB / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3847, allocations: 3.938 kB / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.3847, allocations: 1.969 kB / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3847, allocations: 0 / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3848, allocations: 0 / 498.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.672e-05/0.3848, allocations: 98.08 kB / 498.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.812e-05/0.3849, allocations: 77.81 kB / 498.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.562e-05/0.3849, allocations: 6.172 kB / 498.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.098e-05/0.3849, allocations: 3.984 kB / 498.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.265e-05/0.3849, allocations: 5.75 kB / 498.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-06/0.3849, allocations: 0.5156 kB / 498.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.373e-05/0.3849, allocations: 75.28 kB / 499 MB, free: 14.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.385, allocations: 4.031 kB / 499 MB, free: 14.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004891/0.3854, allocations: 128.3 kB / 499.1 MB, free: 14.66 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.0008019/0.3863, allocations: 310.2 kB / 499.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.3864, allocations: 61.95 kB / 499.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3864, allocations: 0 / 499.4 MB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.702e-05/0.3864, allocations: 60.06 kB / 499.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.3866, allocations: 2.406 kB / 499.5 MB, free: 14.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002411/0.3868, allocations: 86.95 kB / 499.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.387, allocations: 0.6715 MB / 0.4885 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.546e-06/0.387, allocations: 0 / 0.4885 GB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.482e-05/0.3871, allocations: 14.12 kB / 0.4886 GB, free: 13.56 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3871, allocations: 0 / 0.4886 GB, free: 13.56 MB / 382.1 MB Notification: Performance of Templates: time 0.009467/0.3965, allocations: 3.381 MB / 0.4919 GB, free: 12.84 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Math.Random.TestSpecial.makefile (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)