Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008264/0.0008264, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00347/0.00347, allocations: 158.6 kB / 24.7 MB, free: 8.898 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8756/0.8756, allocations: 177.1 MB / 205 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2202/0.2202, allocations: 32.8 MB / 294.2 MB, free: 1.18 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 440.8 MB, free: 3.746 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.821e-05/2.98e-05, allocations: 5.094 kB / 440.8 MB, free: 3.742 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.000998/0.001028, allocations: 0.4981 MB / 441.3 MB, free: 3.246 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.002986, allocations: 1.934 MB / 443.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.478e-05/0.003001, allocations: 0 / 443.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.563e-05/0.003016, allocations: 0 / 443.3 MB, free: 1.289 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.482e-06/0.003023, allocations: 0 / 443.3 MB, free: 1.289 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:928:5-1011: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.00111/0.004133, allocations: 0.5059 MB / 443.8 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.671e-05/0.00418, allocations: 0 / 443.8 MB, free: 0.7852 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.591e-05/0.004216, allocations: 3.984 kB / 443.8 MB, free: 0.7812 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.491e-05/0.004241, allocations: 4 kB / 443.8 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.915e-05/0.00426, allocations: 3.984 kB / 443.8 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.004267, allocations: 0 / 443.8 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007109/0.004978, allocations: 0.6704 MB / 444.5 MB, free: 104 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.554e-06/0.004986, allocations: 0 / 444.5 MB, free: 104 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.783e-05/0.005004, allocations: 4 kB / 444.5 MB, free: 100 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1624/0.1674, allocations: 482.4 kB / 444.9 MB, free: 44.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.1674, allocations: 0 / 444.9 MB, free: 44.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1674, allocations: 2 kB / 444.9 MB, free: 44.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1674, allocations: 0 / 444.9 MB, free: 44.24 MB / 410.7 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.0003013/0.1677, allocations: 342.1 kB / 445.3 MB, free: 43.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.572e-05/0.1677, allocations: 8.188 kB / 445.3 MB, free: 43.93 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.197e-05/0.1678, allocations: 0.9375 kB / 445.3 MB, free: 43.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.21e-05/0.1678, allocations: 110 kB / 445.4 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.1678, allocations: 1.375 kB / 445.4 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.393e-06/0.1678, allocations: 2.562 kB / 445.4 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.786e-05/0.1679, allocations: 62.75 kB / 445.4 MB, free: 43.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.1679, allocations: 3.656 kB / 445.5 MB, free: 43.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.1679, allocations: 1.438 kB / 445.5 MB, free: 43.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1679, allocations: 3.938 kB / 445.5 MB, free: 43.74 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.844e-05/0.1679, allocations: 31.83 kB / 445.5 MB, free: 43.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.951e-05/0.168, allocations: 96.81 kB / 445.6 MB, free: 43.59 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.399e-05/0.168, allocations: 46.34 kB / 445.6 MB, free: 43.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.454e-05/0.1681, allocations: 40.2 kB / 445.7 MB, free: 43.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-06/0.1681, allocations: 0 / 445.7 MB, free: 43.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.1681, allocations: 59.89 kB / 445.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.1681, allocations: 0.5625 kB / 445.7 MB, free: 43.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001471/0.1682, allocations: 121.1 kB / 445.8 MB, free: 43.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/0.1683, allocations: 81.48 kB / 445.9 MB, free: 43.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.523e-05/0.1683, allocations: 93.8 kB / 446 MB, free: 43.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.338e-06/0.1683, allocations: 25.7 kB / 446 MB, free: 43.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.543e-06/0.1683, allocations: 80.86 kB / 446.1 MB, free: 42.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.1683, allocations: 7.609 kB / 446.1 MB, free: 42.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.711e-05/0.1683, allocations: 12 kB / 446.1 MB, free: 42.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.777e-05/0.1683, allocations: 318.2 kB / 446.5 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.01e-05/0.1684, allocations: 28.98 kB / 446.5 MB, free: 42.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.684e-06/0.1684, allocations: 30.42 kB / 446.5 MB, free: 42.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.634e-05/0.1684, allocations: 60.95 kB / 446.6 MB, free: 42.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1684, allocations: 2.969 kB / 446.6 MB, free: 42.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.414e-05/0.1684, allocations: 91.14 kB / 446.7 MB, free: 42.44 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/0.1685, allocations: 31.7 kB / 446.7 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.1685, allocations: 0 / 446.7 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.1685, allocations: 0 / 446.7 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.1685, allocations: 5.812 kB / 446.7 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.1685, allocations: 0 / 446.7 MB, free: 42.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.231e-05/0.1685, allocations: 5.219 kB / 446.7 MB, free: 42.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.1685, allocations: 3.328 kB / 446.7 MB, free: 42.4 MB / 410.7 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 3.62e-05/0.1685, allocations: 135.7 kB / 446.8 MB, free: 42.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.707e-06/0.1685, allocations: 4.875 kB / 446.8 MB, free: 42.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.654e-06/0.1685, allocations: 3 kB / 446.8 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1685, allocations: 0 / 446.8 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1685, allocations: 0.6875 kB / 446.8 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1685, allocations: 3.938 kB / 446.8 MB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 2.815e-05/0.1686, allocations: 101.3 kB / 446.9 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.61e-07/0.1686, allocations: 2.812 kB / 447 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.21e-07/0.1686, allocations: 0 / 447 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.31e-07/0.1686, allocations: 0.75 kB / 447 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-06/0.1686, allocations: 0.625 kB / 447 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1686, allocations: 5.625 kB / 447 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1686, allocations: 2.906 kB / 447 MB, free: 42.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.296e-05/0.1686, allocations: 118.8 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.036e-06/0.1686, allocations: 0.5 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.718e-06/0.1686, allocations: 3.125 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.589e-06/0.1687, allocations: 3.234 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.112e-05/0.1687, allocations: 4.406 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-06/0.1687, allocations: 0.6562 kB / 447.1 MB, free: 42 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.593e-06/0.1687, allocations: 78.47 kB / 447.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1687, allocations: 0 / 447.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002247/0.1689, allocations: 135.2 kB / 447.3 MB, free: 41.9 MB / 410.7 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.0005052/0.1694, allocations: 343.5 kB / 447.6 MB, free: 41.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.543e-05/0.1695, allocations: 114.8 kB / 447.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.1695, allocations: 0 / 447.7 MB, free: 41.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.285e-05/0.1695, allocations: 85.44 kB / 447.8 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.381e-05/0.1696, allocations: 5.438 kB / 447.8 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001502/0.1697, allocations: 130.9 kB / 448 MB, free: 41.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.317e-05/0.1698, allocations: 60.8 kB / 448 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.859e-06/0.1698, allocations: 8.5 kB / 448 MB, free: 41.34 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1698, allocations: 0 / 448 MB, free: 41.34 MB / 410.7 MB Notification: Performance of Templates: time 0.003203/0.173, allocations: 3.446 MB / 451.5 MB, free: 41.11 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.956404057331383]