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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 222.9 MB / 241.6 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009602/0.0009603, allocations: 101.5 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3777/0.3777, allocations: 44.13 MB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 51.92 kB / 457.7 MB, free: 2.297 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3317, allocations: 60.81 MB / 0.5064 GB, free: 38.43 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001602/0.3333, allocations: 0.5576 MB / 0.5069 GB, free: 38.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.3357, allocations: 2.072 MB / 0.509 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.021e-05/0.3357, allocations: 0 / 0.509 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.788e-05/0.3357, allocations: 1.125 kB / 0.509 GB, free: 36.67 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.518e-06/0.3358, allocations: 0 / 0.509 GB, free: 36.67 MB / 378.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.001238/0.337, allocations: 413.1 kB / 0.5094 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.167e-05/0.3371, allocations: 0 / 0.5094 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.97e-05/0.3371, allocations: 2.719 kB / 0.5094 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.416e-05/0.3371, allocations: 0 / 0.5094 GB, free: 36.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.526e-05/0.3371, allocations: 3.984 kB / 0.5094 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.911e-06/0.3371, allocations: 4 kB / 0.5094 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008733/0.338, allocations: 0.6654 MB / 0.51 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.093e-06/0.338, allocations: 4 kB / 0.51 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.758e-05/0.3381, allocations: 0 / 0.51 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004809/0.3386, allocations: 393.7 kB / 0.5104 GB, free: 36.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.3386, allocations: 0 / 0.5104 GB, free: 36.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3386, allocations: 0 / 0.5104 GB, free: 36.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.3386, allocations: 0 / 0.5104 GB, free: 36.19 MB / 378.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.000308/0.3389, allocations: 411.4 kB / 0.5108 GB, free: 35.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.3389, allocations: 10.44 kB / 0.5108 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.885e-05/0.339, allocations: 0.9375 kB / 0.5108 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.79e-05/0.339, allocations: 164.4 kB / 0.511 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.702e-06/0.339, allocations: 384 / 0.511 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.3391, allocations: 2.906 kB / 0.511 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.357e-05/0.3391, allocations: 35.77 kB / 0.511 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3392, allocations: 3.984 kB / 0.511 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3392, allocations: 0 / 0.511 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3392, allocations: 3.938 kB / 0.511 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.731e-05/0.3392, allocations: 6.625 kB / 0.511 GB, free: 35.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.1e-05/0.3393, allocations: 149.1 kB / 0.5111 GB, free: 35.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.452e-05/0.3393, allocations: 21.17 kB / 0.5112 GB, free: 35.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.162e-05/0.3394, allocations: 11.67 kB / 0.5112 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.3394, allocations: 0 / 0.5112 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.3394, allocations: 60.2 kB / 0.5112 GB, free: 35.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.3394, allocations: 4 kB / 0.5112 GB, free: 35.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001212/0.3395, allocations: 66.44 kB / 0.5113 GB, free: 35.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.3396, allocations: 79.83 kB / 0.5114 GB, free: 35.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.831e-05/0.3396, allocations: 93.86 kB / 0.5115 GB, free: 34.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.159e-06/0.3396, allocations: 25.7 kB / 0.5115 GB, free: 34.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.856e-06/0.3396, allocations: 80.14 kB / 0.5116 GB, free: 34.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.15e-05/0.3396, allocations: 0 / 0.5116 GB, free: 34.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.3397, allocations: 12.44 kB / 0.5116 GB, free: 34.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.059e-05/0.3397, allocations: 315 kB / 0.5119 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.127e-06/0.3397, allocations: 5.766 kB / 0.5119 GB, free: 34.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.879e-06/0.3397, allocations: 0 / 0.5119 GB, free: 34.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.829e-05/0.3398, allocations: 63.27 kB / 0.5119 GB, free: 34.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3398, allocations: 0 / 0.5119 GB, free: 34.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.837e-05/0.3398, allocations: 67.05 kB / 0.512 GB, free: 34.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.3399, allocations: 35.3 kB / 0.512 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.427e-06/0.3399, allocations: 0 / 0.512 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.928e-06/0.3399, allocations: 4.094 kB / 0.512 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.3399, allocations: 0 / 0.512 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.798e-06/0.3399, allocations: 0 / 0.512 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.311e-05/0.3399, allocations: 2.875 kB / 0.5121 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.3399, allocations: 0 / 0.5121 GB, free: 34.32 MB / 378.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 4.345e-05/0.34, allocations: 137.7 kB / 0.5122 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.236e-06/0.34, allocations: 7.938 kB / 0.5122 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.847e-06/0.34, allocations: 6.719 kB / 0.5122 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.62e-07/0.34, allocations: 0 / 0.5122 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.34, allocations: 6.812 kB / 0.5122 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.34, allocations: 0 / 0.5122 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.604e-05/0.3401, allocations: 148.9 kB / 0.5123 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3401, allocations: 0 / 0.5123 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3401, allocations: 6.844 kB / 0.5124 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3401, allocations: 3.938 kB / 0.5124 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.891e-06/0.3401, allocations: 3.984 kB / 0.5124 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.3401, allocations: 0 / 0.5124 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3401, allocations: 0 / 0.5124 GB, free: 33.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001816/0.3403, allocations: 0.6446 MB / 0.513 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.3403, allocations: 77.11 kB / 0.5131 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.125e-05/0.3403, allocations: 3.938 kB / 0.5131 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.3403, allocations: 0 / 0.5131 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.483e-05/0.3404, allocations: 0 / 0.5131 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3404, allocations: 3.938 kB / 0.5131 GB, free: 33.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.314e-05/0.3404, allocations: 79.22 kB / 0.5131 GB, free: 33.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3404, allocations: 4.031 kB / 0.5131 GB, free: 33.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004391/0.3408, allocations: 123.4 kB / 0.5133 GB, free: 33.07 MB / 378.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.0007226/0.3416, allocations: 303.9 kB / 0.5136 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.021e-05/0.3416, allocations: 65.19 kB / 0.5136 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3417, allocations: 0 / 0.5136 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.805e-05/0.3417, allocations: 57.58 kB / 0.5137 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001146/0.3418, allocations: 6.969 kB / 0.5137 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001645/0.342, allocations: 179 kB / 0.5139 GB, free: 32.58 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001246/0.3421, allocations: 0.6754 MB / 0.5145 GB, free: 31.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.029e-06/0.3421, allocations: 4.125 kB / 0.5145 GB, free: 31.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.983e-06/0.3421, allocations: 7.438 kB / 0.5145 GB, free: 31.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3421, allocations: 0 / 0.5145 GB, free: 31.88 MB / 378.7 MB Notification: Performance of Templates: time 0.005813/0.348, allocations: 3.375 MB / 0.5178 GB, free: 31.63 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches