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.001157/0.001157, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00125/0.002407, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008472/0.0008472, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001063/0.00191, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.088/1.088, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1249/1.213, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.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.3259/0.3259, allocations: 32.8 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02992/0.3558, allocations: 12.53 MB / 289.3 MB, free: 8.68 MB / 282.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.753e-06/1.753e-06, allocations: 0 / 290.6 MB, free: 7.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.376e-05/3.552e-05, allocations: 4.203 kB / 290.6 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001384/0.00142, allocations: 0.5578 MB / 291.2 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002494/0.003914, allocations: 1.992 MB / 293.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.003931, allocations: 0 / 293.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.789e-06/0.003935, allocations: 0 / 293.2 MB, free: 5.652 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 1.483e-06/0.003937, allocations: 0 / 293.2 MB, free: 5.652 MB / 282.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.001274/0.005211, allocations: 456 kB / 293.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 6.604e-05/0.005277, allocations: 4 kB / 293.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.079e-05/0.005318, allocations: 3.984 kB / 293.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.673e-05/0.005354, allocations: 0 / 293.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.257e-05/0.005377, allocations: 0 / 293.6 MB, free: 5.293 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.005385, allocations: 4 kB / 293.6 MB, free: 5.289 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009849/0.00637, allocations: 0.6939 MB / 294.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.068e-05/0.006381, allocations: 3.938 kB / 294.3 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.864e-05/0.0064, allocations: 7.984 kB / 294.3 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005623/0.006962, allocations: 359 kB / 294.7 MB, free: 4.23 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.819e-05/0.00698, allocations: 8 kB / 294.7 MB, free: 4.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.006982, allocations: 0 / 294.7 MB, free: 4.223 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.007, allocations: 0 / 294.7 MB, free: 4.223 MB / 282.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.0004896/0.00749, allocations: 361.7 kB / 295 MB, free: 3.84 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.007527, allocations: 8.031 kB / 295 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.007565, allocations: 4.938 kB / 295 MB, free: 3.828 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.669e-05/0.007632, allocations: 105.8 kB / 295.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.007643, allocations: 384 / 295.1 MB, free: 3.699 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.835e-06/0.007651, allocations: 4.375 kB / 295.2 MB, free: 3.695 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.997e-05/0.007741, allocations: 55.95 kB / 295.2 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.007748, allocations: 4.188 kB / 295.2 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-06/0.007754, allocations: 384 / 295.2 MB, free: 3.625 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.007761, allocations: 7.938 kB / 295.2 MB, free: 3.617 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.989e-05/0.007781, allocations: 25.7 kB / 295.2 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.035e-05/0.007861, allocations: 68.91 kB / 295.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.38e-05/0.007915, allocations: 44.28 kB / 295.4 MB, free: 3.445 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.896e-05/0.007934, allocations: 34.66 kB / 295.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-06/0.007938, allocations: 0 / 295.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.007975, allocations: 56.27 kB / 295.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.007976, allocations: 0 / 295.4 MB, free: 3.332 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001388/0.008115, allocations: 122.7 kB / 295.6 MB, free: 3.188 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.00816, allocations: 77.11 kB / 295.6 MB, free: 3.094 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.77e-05/0.008197, allocations: 93.86 kB / 295.7 MB, free: 2.992 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.478e-06/0.008207, allocations: 25.7 kB / 295.8 MB, free: 2.961 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.942e-05/0.008226, allocations: 80.14 kB / 295.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.008243, allocations: 0 / 295.8 MB, free: 2.879 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.453e-05/0.008267, allocations: 13.72 kB / 295.8 MB, free: 2.859 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.134e-05/0.008349, allocations: 318.7 kB / 296.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.221e-05/0.008371, allocations: 33.69 kB / 296.2 MB, free: 2.5 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.625e-05/0.008387, allocations: 29.7 kB / 296.2 MB, free: 2.465 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.596e-05/0.008433, allocations: 64.45 kB / 296.3 MB, free: 2.387 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.008435, allocations: 0 / 296.3 MB, free: 2.387 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.33e-05/0.008499, allocations: 89.03 kB / 296.4 MB, free: 2.281 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.008536, allocations: 33.7 kB / 296.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.008542, allocations: 0 / 296.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.008551, allocations: 0 / 296.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.998e-06/0.008555, allocations: 0 / 296.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-06/0.008558, allocations: 0 / 296.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.635e-05/0.008574, allocations: 0 / 296.4 MB, free: 2.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.008584, allocations: 7.938 kB / 296.4 MB, free: 2.234 MB / 282.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 6.462e-05/0.008649, allocations: 139.6 kB / 296.5 MB, free: 2.082 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-06/0.008658, allocations: 11.97 kB / 296.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.937e-06/0.008667, allocations: 3 kB / 296.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.008669, allocations: 0 / 296.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-06/0.00867, allocations: 0 / 296.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.008674, allocations: 0 / 296.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.389e-05/0.008727, allocations: 66.53 kB / 296.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.008728, allocations: 0 / 296.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.014e-06/0.00873, allocations: 4 kB / 296.6 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.416e-06/0.008734, allocations: 0 / 296.6 MB, free: 1.984 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-06/0.008735, allocations: 4 kB / 296.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.847e-06/0.008738, allocations: 0 / 296.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.00874, allocations: 3.984 kB / 296.6 MB, free: 1.977 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.008742, allocations: 4 kB / 296.6 MB, free: 1.973 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.899e-05/0.008841, allocations: 116.4 kB / 296.8 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.008856, allocations: 3.984 kB / 296.8 MB, free: 1.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.123e-06/0.008863, allocations: 0 / 296.8 MB, free: 1.824 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-06/0.008872, allocations: 4 kB / 296.8 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-06/0.008875, allocations: 0 / 296.8 MB, free: 1.82 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.408e-06/0.008884, allocations: 4.859 kB / 296.8 MB, free: 1.812 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008884, allocations: 0 / 296.8 MB, free: 1.812 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003312/0.009215, allocations: 131.6 kB / 296.9 MB, free: 1.684 MB / 282.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.0006634/0.009879, allocations: 336.8 kB / 297.2 MB, free: 1.363 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.01001, allocations: 119.7 kB / 297.3 MB, free: 1.219 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.01002, allocations: 4 kB / 297.3 MB, free: 1.215 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.505e-05/0.01005, allocations: 89.91 kB / 297.4 MB, free: 1.105 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.027e-05/0.01012, allocations: 10.33 kB / 297.4 MB, free: 1.098 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002009/0.01032, allocations: 113.4 kB / 297.6 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.647e-05/0.01036, allocations: 51.36 kB / 297.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.625e-06/0.01037, allocations: 0 / 297.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.121e-05/0.01041, allocations: 51.38 kB / 297.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of SimCode: time 1.012e-06/0.01041, allocations: 128 / 297.7 MB, free: 0.832 MB / 282.7 MB Notification: Performance of Templates: time 0.006349/0.01676, allocations: 3.926 MB / 301.6 MB, free: 12.91 MB / 298.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.276168679818511]