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.0009729/0.000973, allocations: 183.6 kB / 18.09 MB, free: 3.613 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.386/1.386, allocations: 223.3 MB / 242.1 MB, free: 9.961 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.0008452/0.0008451, allocations: 100.4 kB / 293.3 MB, free: 10.55 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.3832/0.3832, allocations: 44.14 MB / 388.5 MB, free: 38.51 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003945/0.0003947, allocations: 11.98 kB / 461.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3038, allocations: 61.89 MB / 0.5107 GB, free: 37.75 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.4105, allocations: 87.62 MB / 0.5963 GB, free: 7.457 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.4108, allocations: 79.88 kB / 0.5964 GB, free: 7.383 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6371/1.048, allocations: 37.57 MB / 0.6331 GB, free: 1.762 MB / 442.7 MB Notification: Performance of FrontEnd: time 7.243e-06/1.048, allocations: 4 kB / 0.6331 GB, free: 1.758 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/1.048, allocations: 0 / 0.6331 GB, free: 1.758 MB / 442.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.001965/1.05, allocations: 437 kB / 0.6335 GB, free: 1.273 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/1.05, allocations: 8.031 kB / 0.6335 GB, free: 1.266 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.727e-05/1.05, allocations: 8.938 kB / 0.6335 GB, free: 1.258 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001039/1.05, allocations: 160.4 kB / 0.6336 GB, free: 1.062 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/1.05, allocations: 384 / 0.6336 GB, free: 1.062 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.363e-06/1.05, allocations: 384 / 0.6336 GB, free: 1.062 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.581e-05/1.05, allocations: 38.25 kB / 0.6337 GB, free: 1.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/1.05, allocations: 192 / 0.6337 GB, free: 1.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/1.05, allocations: 3.938 kB / 0.6337 GB, free: 1.016 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.256e-06/1.05, allocations: 0 / 0.6337 GB, free: 1.016 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.584e-05/1.05, allocations: 3.938 kB / 0.6337 GB, free: 1.012 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001198/1.05, allocations: 153.7 kB / 0.6338 GB, free: 0.8125 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.285e-05/1.05, allocations: 14.58 kB / 0.6339 GB, free: 0.7891 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.083e-05/1.05, allocations: 4.859 kB / 0.6339 GB, free: 0.7812 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.327e-06/1.051, allocations: 4 kB / 0.6339 GB, free: 0.7773 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/1.051, allocations: 60.36 kB / 0.6339 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/1.051, allocations: 3.938 kB / 0.6339 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001471/1.051, allocations: 75.27 kB / 0.634 GB, free: 0.6133 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/1.051, allocations: 77.11 kB / 0.6341 GB, free: 0.5195 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.899e-05/1.051, allocations: 89.86 kB / 0.6342 GB, free: 432 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/1.051, allocations: 25.7 kB / 0.6342 GB, free: 400 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.181e-05/1.051, allocations: 88.2 kB / 0.6343 GB, free: 308 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.409e-05/1.051, allocations: 0 / 0.6343 GB, free: 308 kB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-06/1.051, allocations: 4 kB / 0.6343 GB, free: 304 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/1.051, allocations: 310.8 kB / 0.6346 GB, free: 15.98 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.303e-06/1.051, allocations: 0 / 0.6346 GB, free: 15.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.069e-06/1.051, allocations: 0 / 0.6346 GB, free: 15.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.322e-05/1.051, allocations: 68.25 kB / 0.6346 GB, free: 15.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/1.051, allocations: 0 / 0.6346 GB, free: 15.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.058e-05/1.051, allocations: 67.41 kB / 0.6347 GB, free: 15.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/1.051, allocations: 29.7 kB / 0.6347 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/1.051, allocations: 0 / 0.6347 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/1.051, allocations: 3.938 kB / 0.6347 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.028e-06/1.051, allocations: 7.984 kB / 0.6347 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/1.051, allocations: 0 / 0.6347 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.409e-05/1.051, allocations: 0 / 0.6347 GB, free: 15.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/1.051, allocations: 3.984 kB / 0.6347 GB, free: 15.77 MB / 458.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 8.155e-05/1.051, allocations: 139.5 kB / 0.6349 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-06/1.051, allocations: 4.031 kB / 0.6349 GB, free: 15.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.367e-05/1.051, allocations: 10.66 kB / 0.6349 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/1.051, allocations: 0 / 0.6349 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/1.051, allocations: 0 / 0.6349 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/1.051, allocations: 0 / 0.6349 GB, free: 15.61 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.785e-05/1.052, allocations: 149.7 kB / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/1.052, allocations: 0 / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/1.052, allocations: 0 / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/1.052, allocations: 0 / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/1.052, allocations: 3.938 kB / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/1.052, allocations: 0 / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/1.052, allocations: 4 kB / 0.635 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/1.052, allocations: 94.77 kB / 0.6351 GB, free: 15.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.983e-05/1.052, allocations: 77.11 kB / 0.6352 GB, free: 15.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/1.052, allocations: 11.88 kB / 0.6352 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.918e-06/1.052, allocations: 0 / 0.6352 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.366e-06/1.052, allocations: 0 / 0.6352 GB, free: 15.18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/1.052, allocations: 4 kB / 0.6352 GB, free: 15.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.543e-05/1.052, allocations: 79.31 kB / 0.6353 GB, free: 15.1 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.81e-07/1.052, allocations: 0 / 0.6353 GB, free: 15.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003997/1.056, allocations: 1.316 MB / 0.6366 GB, free: 13.79 MB / 458.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.006298/1.062, allocations: 1.205 MB / 0.6377 GB, free: 12.58 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001012/1.062, allocations: 55.41 kB / 0.6378 GB, free: 12.51 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.062, allocations: 0 / 0.6378 GB, free: 12.51 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 4.15e-05/1.062, allocations: 63.34 kB / 0.6379 GB, free: 12.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001143/1.062, allocations: 0 / 0.6379 GB, free: 12.44 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001645/1.063, allocations: 78.81 kB / 0.6379 GB, free: 12.33 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/1.063, allocations: 0.6731 MB / 0.6386 GB, free: 11.63 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 6.092e-06/1.063, allocations: 0 / 0.6386 GB, free: 11.63 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.532e-05/1.063, allocations: 11.44 kB / 0.6386 GB, free: 11.62 MB / 458.7 MB Notification: Performance of SimCode: time 3.1e-07/1.063, allocations: 0 / 0.6386 GB, free: 11.62 MB / 458.7 MB Notification: Performance of Templates: time 0.3123/1.375, allocations: 63.15 MB / 0.7003 GB, free: 94.23 MB / 490.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/jenkins1/ws/OpenModelicaLibraryTestingWork/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