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.001074/0.001074, 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.001196/0.001196, allocations: 195.9 kB / 16.14 MB, free: 6.711 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.611/1.611, allocations: 205.1 MB / 222 MB, free: 4.758 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.3631/0.3631, allocations: 39.93 MB / 309.3 MB, free: 9.594 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.001349/0.001349, allocations: 66.41 kB / 376.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1464, allocations: 56.88 MB / 433.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002208/0.1487, allocations: 0.5713 MB / 434.4 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.1521, allocations: 2.1 MB / 436.5 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.524e-05/0.1521, allocations: 4 kB / 436.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.256e-05/0.1522, allocations: 0 / 436.5 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.244e-06/0.1522, allocations: 7.938 kB / 436.5 MB, free: 1.695 MB / 366.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.001321/0.1535, allocations: 411.1 kB / 436.9 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.385e-05/0.1535, allocations: 0 / 436.9 MB, free: 1.293 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.668e-05/0.1536, allocations: 4 kB / 436.9 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.747e-05/0.1536, allocations: 0 / 436.9 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.804e-05/0.1536, allocations: 0 / 436.9 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.1537, allocations: 0 / 436.9 MB, free: 1.289 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.1547, allocations: 0.6748 MB / 437.6 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.1547, allocations: 0 / 437.6 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.1547, allocations: 0 / 437.6 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005766/0.1553, allocations: 403 kB / 438 MB, free: 224 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1553, allocations: 0 / 438 MB, free: 224 kB / 366.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1553, allocations: 0 / 438 MB, free: 224 kB / 366.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1553, allocations: 0 / 438 MB, free: 224 kB / 366.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.0004735/0.1558, allocations: 405.3 kB / 438.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.1559, allocations: 8.031 kB / 438.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.641e-05/0.1559, allocations: 0.9375 kB / 438.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.637e-05/0.156, allocations: 160.4 kB / 438.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.156, allocations: 384 / 438.5 MB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.959e-06/0.156, allocations: 8.375 kB / 438.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.884e-05/0.1561, allocations: 34 kB / 438.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.1561, allocations: 0 / 438.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.1562, allocations: 0 / 438.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1562, allocations: 0 / 438.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.227e-05/0.1562, allocations: 4 kB / 438.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.1563, allocations: 149.6 kB / 438.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.1564, allocations: 22.55 kB / 438.7 MB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.483e-05/0.1564, allocations: 8.859 kB / 438.7 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-06/0.1564, allocations: 3.984 kB / 438.7 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.1565, allocations: 60.2 kB / 438.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1565, allocations: 0 / 438.8 MB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001642/0.1566, allocations: 71.31 kB / 438.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.1567, allocations: 81.11 kB / 439 MB, free: 15.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.516e-05/0.1568, allocations: 89.86 kB / 439 MB, free: 14.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.1568, allocations: 33.81 kB / 439.1 MB, free: 14.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.535e-05/0.1568, allocations: 80.14 kB / 439.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.1568, allocations: 0 / 439.2 MB, free: 14.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.732e-05/0.1569, allocations: 13.72 kB / 439.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.157, allocations: 314.8 kB / 439.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.157, allocations: 3.938 kB / 439.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.421e-06/0.157, allocations: 0 / 439.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.666e-05/0.1571, allocations: 64.33 kB / 439.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1571, allocations: 0 / 439.5 MB, free: 14.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.535e-05/0.1571, allocations: 67.33 kB / 439.6 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.247e-05/0.1572, allocations: 33.64 kB / 439.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1572, allocations: 0 / 439.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.1572, allocations: 7.984 kB / 439.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1572, allocations: 0 / 439.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1572, allocations: 0 / 439.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.459e-05/0.1573, allocations: 0 / 439.6 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.1573, allocations: 0 / 439.6 MB, free: 14.26 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.836e-05/0.1574, allocations: 147.6 kB / 439.8 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-06/0.1574, allocations: 3.938 kB / 439.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.979e-06/0.1574, allocations: 3.125 kB / 439.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.41e-07/0.1574, allocations: 0 / 439.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1574, allocations: 0 / 439.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1574, allocations: 4 kB / 439.8 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.505e-05/0.1575, allocations: 145.7 kB / 439.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1575, allocations: 0 / 439.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.853e-06/0.1575, allocations: 3.984 kB / 439.9 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1575, allocations: 3.938 kB / 440 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.834e-06/0.1576, allocations: 4 kB / 440 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1576, allocations: 3.938 kB / 440 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1576, allocations: 4 kB / 440 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.875e-05/0.1577, allocations: 90.77 kB / 440.1 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.006e-05/0.1577, allocations: 77.11 kB / 440.1 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.413e-05/0.1577, allocations: 7.938 kB / 440.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.206e-06/0.1577, allocations: 0 / 440.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.061e-05/0.1578, allocations: 4.031 kB / 440.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.1578, allocations: 0 / 440.1 MB, free: 13.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.267e-05/0.1578, allocations: 79.28 kB / 440.2 MB, free: 13.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1578, allocations: 4 kB / 440.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.1582, allocations: 124 kB / 440.3 MB, free: 13.45 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.0008171/0.159, allocations: 298.7 kB / 440.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1591, allocations: 55.41 kB / 440.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1592, allocations: 0 / 440.7 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.583e-05/0.1592, allocations: 67.33 kB / 440.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.1593, allocations: 7.266 kB / 440.8 MB, free: 13.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001819/0.1595, allocations: 82.83 kB / 440.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.1598, allocations: 0.6692 MB / 441.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.172e-06/0.1598, allocations: 0 / 441.5 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.267e-05/0.1598, allocations: 11.44 kB / 441.5 MB, free: 12.2 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1598, allocations: 0 / 441.5 MB, free: 12.2 MB / 382.1 MB Notification: Performance of Templates: time 0.006555/0.1664, allocations: 3.378 MB / 444.9 MB, free: 8.816 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)