Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001499/0.001499, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001857/0.001857, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2091/0.2091, allocations: 46.1 MB / 345 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 75.88 kB / 482 MB, free: 4.031 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3744/0.3758, allocations: 62.43 MB / 0.5317 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001864/0.3777, allocations: 0.4975 MB / 0.5321 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003071/0.3808, allocations: 2.023 MB / 0.5341 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.905e-05/0.3809, allocations: 4 kB / 0.5341 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.827e-05/0.3809, allocations: 0 / 0.5341 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.915e-06/0.3809, allocations: 3.938 kB / 0.5341 GB, free: 11.84 MB / 398.1 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.001559/0.3825, allocations: 0.4898 MB / 0.5346 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.566e-05/0.3826, allocations: 1.375 kB / 0.5346 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.162e-05/0.3826, allocations: 5.359 kB / 0.5346 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.866e-05/0.3826, allocations: 1.375 kB / 0.5346 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.104e-05/0.3827, allocations: 0 / 0.5346 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.3827, allocations: 3.938 kB / 0.5346 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001197/0.3839, allocations: 0.6364 MB / 0.5352 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.362e-05/0.3839, allocations: 3.938 kB / 0.5352 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.152e-05/0.3839, allocations: 1.188 kB / 0.5352 GB, free: 11.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008269/0.3848, allocations: 388 kB / 0.5356 GB, free: 10.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3848, allocations: 1.156 kB / 0.5356 GB, free: 10.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3848, allocations: 0 / 0.5356 GB, free: 10.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.3848, allocations: 4 kB / 0.5356 GB, free: 10.95 MB / 398.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.0005072/0.3853, allocations: 410.5 kB / 0.536 GB, free: 10.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.3854, allocations: 10.19 kB / 0.536 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.3854, allocations: 4.922 kB / 0.536 GB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.3855, allocations: 161.5 kB / 0.5362 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.163e-05/0.3855, allocations: 384 / 0.5362 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.3856, allocations: 5.453 kB / 0.5362 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.3857, allocations: 40.33 kB / 0.5362 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.3857, allocations: 0 / 0.5362 GB, free: 10.28 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.3857, allocations: 5.156 kB / 0.5362 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3857, allocations: 0 / 0.5362 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.264e-05/0.3857, allocations: 1.094 kB / 0.5362 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001507/0.3859, allocations: 148.6 kB / 0.5364 GB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.747e-05/0.386, allocations: 16.98 kB / 0.5364 GB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.521e-05/0.386, allocations: 6.016 kB / 0.5364 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.386, allocations: 1.125 kB / 0.5364 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.381e-05/0.3861, allocations: 73.2 kB / 0.5365 GB, free: 9.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.3861, allocations: 0 / 0.5365 GB, free: 9.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001985/0.3863, allocations: 63.55 kB / 0.5365 GB, free: 9.898 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.298e-05/0.3863, allocations: 78.3 kB / 0.5366 GB, free: 9.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.762e-05/0.3864, allocations: 89.86 kB / 0.5367 GB, free: 9.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.3864, allocations: 25.7 kB / 0.5367 GB, free: 9.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.172e-05/0.3864, allocations: 81.45 kB / 0.5368 GB, free: 9.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.3865, allocations: 4 kB / 0.5368 GB, free: 9.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.3865, allocations: 16.47 kB / 0.5368 GB, free: 9.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.3866, allocations: 310.8 kB / 0.5371 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.092e-05/0.3867, allocations: 1.094 kB / 0.5371 GB, free: 9.258 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.108e-05/0.3867, allocations: 5.078 kB / 0.5371 GB, free: 9.254 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.973e-05/0.3867, allocations: 67.55 kB / 0.5372 GB, free: 9.176 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.3867, allocations: 0 / 0.5372 GB, free: 9.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.926e-05/0.3868, allocations: 62.53 kB / 0.5372 GB, free: 9.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.531e-05/0.3869, allocations: 39.27 kB / 0.5373 GB, free: 9.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3869, allocations: 5.047 kB / 0.5373 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.3869, allocations: 0 / 0.5373 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3869, allocations: 1.188 kB / 0.5373 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.3869, allocations: 0 / 0.5373 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.576e-05/0.3869, allocations: 1.156 kB / 0.5373 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.387, allocations: 4 kB / 0.5373 GB, free: 9.062 MB / 398.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 0.0001027/0.3871, allocations: 137.8 kB / 0.5374 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.08e-05/0.3871, allocations: 9.062 kB / 0.5374 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.209e-05/0.3871, allocations: 8.25 kB / 0.5374 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3871, allocations: 0 / 0.5374 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3871, allocations: 0 / 0.5374 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3871, allocations: 5.094 kB / 0.5374 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001077/0.3872, allocations: 154.7 kB / 0.5376 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3873, allocations: 0 / 0.5376 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.403e-06/0.3873, allocations: 1.156 kB / 0.5376 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3873, allocations: 3.938 kB / 0.5376 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-06/0.3873, allocations: 1.125 kB / 0.5376 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3873, allocations: 0 / 0.5376 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3873, allocations: 1.094 kB / 0.5376 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001037/0.3874, allocations: 94.02 kB / 0.5377 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.3874, allocations: 77.11 kB / 0.5377 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.3875, allocations: 4.938 kB / 0.5378 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3875, allocations: 1 kB / 0.5378 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.178e-05/0.3875, allocations: 1.094 kB / 0.5378 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.3875, allocations: 4.984 kB / 0.5378 GB, free: 8.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.398e-05/0.3876, allocations: 75.31 kB / 0.5378 GB, free: 8.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3876, allocations: 4 kB / 0.5378 GB, free: 8.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005114/0.3881, allocations: 122.9 kB / 0.538 GB, free: 8.383 MB / 398.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.0008739/0.389, allocations: 321.7 kB / 0.5383 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001096/0.3891, allocations: 57.31 kB / 0.5383 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3891, allocations: 0 / 0.5383 GB, free: 8.129 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.094e-05/0.3892, allocations: 58.64 kB / 0.5384 GB, free: 8.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.3893, allocations: 13.94 kB / 0.5384 GB, free: 8.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002463/0.3896, allocations: 102.8 kB / 0.5385 GB, free: 7.926 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.3898, allocations: 0.6702 MB / 0.5391 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.766e-05/0.3899, allocations: 14.22 kB / 0.5391 GB, free: 7.219 MB / 398.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3899, allocations: 0 / 0.5391 GB, free: 7.219 MB / 398.1 MB Notification: Performance of Templates: time 0.008668/0.3985, allocations: 3.413 MB / 0.5425 GB, free: 5.539 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches