Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 198.8 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.6 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007447/0.0007449, allocations: 101.2 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.342/0.342, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002819/0.0002819, allocations: 8 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3631/0.3634, allocations: 62.96 MB / 0.5159 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.0005357/0.364, allocations: 231 kB / 0.5161 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002003/0.366, allocations: 1.936 MB / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.274e-05/0.366, allocations: 0 / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.468e-05/0.3661, allocations: 0 / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.204e-06/0.3661, allocations: 0 / 0.518 GB, free: 35.57 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001091/0.3672, allocations: 399.8 kB / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.92e-05/0.3672, allocations: 2.812 kB / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.412e-05/0.3673, allocations: 0 / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.3673, allocations: 7.984 kB / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.775e-05/0.3673, allocations: 2.469 kB / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-06/0.3673, allocations: 0 / 0.5184 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000853/0.3682, allocations: 0.6679 MB / 0.519 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/0.3682, allocations: 3.984 kB / 0.519 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.007e-05/0.3682, allocations: 28.58 kB / 0.5191 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002912/0.3685, allocations: 246.2 kB / 0.5193 GB, free: 35.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3685, allocations: 0 / 0.5193 GB, free: 35.15 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3685, allocations: 3.938 kB / 0.5193 GB, free: 35.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.3686, allocations: 7.938 kB / 0.5193 GB, free: 35.14 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.0003074/0.3689, allocations: 406.2 kB / 0.5197 GB, free: 34.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.3689, allocations: 15.62 kB / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.846e-05/0.3689, allocations: 0.9375 kB / 0.5197 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.514e-05/0.369, allocations: 160.4 kB / 0.5199 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.369, allocations: 384 / 0.5199 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/0.369, allocations: 384 / 0.5199 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.688e-05/0.3691, allocations: 36.86 kB / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.151e-06/0.3691, allocations: 0 / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.3691, allocations: 6.969 kB / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.3692, allocations: 3.234 kB / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.519e-05/0.3692, allocations: 0 / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.822e-05/0.3693, allocations: 148.7 kB / 0.52 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.342e-05/0.3693, allocations: 18.52 kB / 0.5201 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.13e-05/0.3693, allocations: 8.328 kB / 0.5201 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.3693, allocations: 0 / 0.5201 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.3694, allocations: 67.53 kB / 0.5201 GB, free: 34.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.3694, allocations: 0 / 0.5201 GB, free: 34.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.3695, allocations: 68.52 kB / 0.5202 GB, free: 34.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.082e-05/0.3696, allocations: 84.19 kB / 0.5203 GB, free: 34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.365e-05/0.3696, allocations: 93.8 kB / 0.5204 GB, free: 33.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.931e-06/0.3696, allocations: 25.7 kB / 0.5204 GB, free: 33.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.08e-05/0.3696, allocations: 80.14 kB / 0.5205 GB, free: 33.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.3697, allocations: 3 kB / 0.5205 GB, free: 33.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.234e-06/0.3697, allocations: 4.125 kB / 0.5205 GB, free: 33.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.499e-05/0.3697, allocations: 310.8 kB / 0.5208 GB, free: 33.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.193e-06/0.3697, allocations: 0 / 0.5208 GB, free: 33.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.869e-06/0.3697, allocations: 2.969 kB / 0.5208 GB, free: 33.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.111e-05/0.3698, allocations: 63.08 kB / 0.5208 GB, free: 33.4 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3698, allocations: 0 / 0.5208 GB, free: 33.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.86e-05/0.3698, allocations: 60.55 kB / 0.5209 GB, free: 33.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.3699, allocations: 35.58 kB / 0.5209 GB, free: 33.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.3699, allocations: 8.031 kB / 0.5209 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.3699, allocations: 0 / 0.5209 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-06/0.3699, allocations: 2.844 kB / 0.5209 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.088e-06/0.3699, allocations: 0 / 0.5209 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.424e-05/0.3699, allocations: 3.188 kB / 0.5209 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.3699, allocations: 0 / 0.5209 GB, free: 33.29 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.37, allocations: 138.3 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.732e-06/0.37, allocations: 3.938 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.575e-06/0.37, allocations: 9.562 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.37, allocations: 7.938 kB / 0.5211 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.37, allocations: 0 / 0.5211 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.37, allocations: 0 / 0.5211 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.076e-05/0.3701, allocations: 147.8 kB / 0.5212 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.61e-07/0.3701, allocations: 0 / 0.5212 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3701, allocations: 0 / 0.5212 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.3701, allocations: 7.922 kB / 0.5212 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-06/0.3701, allocations: 0 / 0.5212 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3701, allocations: 2.906 kB / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.3701, allocations: 0 / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.358e-05/0.3702, allocations: 101.1 kB / 0.5213 GB, free: 32.83 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.431e-05/0.3702, allocations: 80.39 kB / 0.5214 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.3702, allocations: 3.938 kB / 0.5214 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-06/0.3703, allocations: 0 / 0.5214 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.054e-05/0.3703, allocations: 3.688 kB / 0.5214 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.394e-06/0.3703, allocations: 3.938 kB / 0.5214 GB, free: 32.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.272e-05/0.3703, allocations: 75.28 kB / 0.5215 GB, free: 32.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3703, allocations: 0 / 0.5215 GB, free: 32.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000353/0.3707, allocations: 133.5 kB / 0.5216 GB, free: 32.62 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006849/0.3713, allocations: 313.8 kB / 0.5219 GB, free: 32.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.209e-05/0.3714, allocations: 60.75 kB / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3714, allocations: 0 / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.74e-05/0.3715, allocations: 57.34 kB / 0.522 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001115/0.3716, allocations: 3.094 kB / 0.522 GB, free: 32.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001443/0.3717, allocations: 110.5 kB / 0.5222 GB, free: 32.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.539e-05/0.3718, allocations: 0.6731 MB / 0.5228 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.734e-06/0.3718, allocations: 10.34 kB / 0.5228 GB, free: 31.5 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3719, allocations: 4.125 kB / 0.5228 GB, free: 31.5 MB / 378.7 MB Notification: Performance of Templates: time 0.004638/0.3765, allocations: 3.406 MB / 0.5262 GB, free: 31.24 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches