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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007784/0.0007784, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00127/0.002048, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006826/0.0006826, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001031/0.001714, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9323/0.9323, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1748/1.107, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.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.1357/0.1357, allocations: 32.8 MB / 272 MB, free: 6.289 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02351/0.1592, allocations: 12.54 MB / 284.5 MB, free: 9.703 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.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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.924e-06/1.924e-06, allocations: 3.938 kB / 285.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.456e-05/2.648e-05, allocations: 2.312 kB / 285.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001858/0.001884, allocations: 0.5611 MB / 286.4 MB, free: 7.848 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.004614, allocations: 1.96 MB / 288.4 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.248e-05/0.004626, allocations: 4 kB / 288.4 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.707e-06/0.00463, allocations: 0 / 288.4 MB, free: 5.859 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.32e-07/0.004631, allocations: 0 / 288.4 MB, free: 5.859 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.0007311/0.005362, allocations: 446.4 kB / 288.8 MB, free: 5.422 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.54e-05/0.005407, allocations: 4 kB / 288.8 MB, free: 5.418 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.064e-05/0.005438, allocations: 7.984 kB / 288.8 MB, free: 5.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.809e-05/0.005466, allocations: 4 kB / 288.8 MB, free: 5.406 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.005e-05/0.005486, allocations: 3.938 kB / 288.8 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.925e-06/0.005494, allocations: 0 / 288.8 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007001/0.006194, allocations: 0.6783 MB / 289.5 MB, free: 4.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.239e-05/0.006206, allocations: 0 / 289.5 MB, free: 4.723 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.382e-05/0.00622, allocations: 3.938 kB / 289.5 MB, free: 4.719 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003801/0.0066, allocations: 351.2 kB / 289.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.006608, allocations: 0 / 289.8 MB, free: 4.375 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.006609, allocations: 4 kB / 289.9 MB, free: 4.371 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.006617, allocations: 0 / 289.9 MB, free: 4.371 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.0003041/0.006922, allocations: 357.7 kB / 290.2 MB, free: 3.992 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.006951, allocations: 8.031 kB / 290.2 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.1e-05/0.006982, allocations: 0.9375 kB / 290.2 MB, free: 3.984 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.581e-05/0.007038, allocations: 109.8 kB / 290.3 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.085e-06/0.007046, allocations: 384 / 290.3 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-06/0.007053, allocations: 384 / 290.3 MB, free: 3.852 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.8e-05/0.007111, allocations: 55.97 kB / 290.4 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.081e-06/0.007117, allocations: 192 / 290.4 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.007125, allocations: 4.359 kB / 290.4 MB, free: 3.781 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.00713, allocations: 7.938 kB / 290.4 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.582e-05/0.007146, allocations: 33.64 kB / 290.4 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.372e-05/0.00721, allocations: 61.03 kB / 290.5 MB, free: 3.66 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.093e-05/0.007251, allocations: 44.31 kB / 290.5 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.318e-05/0.007264, allocations: 34.62 kB / 290.6 MB, free: 3.559 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.498e-06/0.007268, allocations: 4 kB / 290.6 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.007297, allocations: 56.27 kB / 290.6 MB, free: 3.484 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.007298, allocations: 0 / 290.6 MB, free: 3.484 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 9.907e-05/0.007397, allocations: 118.7 kB / 290.7 MB, free: 3.344 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.007443, allocations: 158.3 kB / 290.9 MB, free: 3.152 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.439e-05/0.007467, allocations: 89.86 kB / 291 MB, free: 3.055 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-06/0.007476, allocations: 29.7 kB / 291 MB, free: 3.02 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.484e-05/0.007491, allocations: 80.14 kB / 291.1 MB, free: 2.938 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.718e-05/0.007508, allocations: 0 / 291.1 MB, free: 2.938 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.007535, allocations: 21.69 kB / 291.1 MB, free: 2.91 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.545e-05/0.0076, allocations: 314.8 kB / 291.4 MB, free: 2.594 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.007612, allocations: 25.7 kB / 291.4 MB, free: 2.562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.116e-05/0.007623, allocations: 33.7 kB / 291.5 MB, free: 2.523 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.718e-05/0.00766, allocations: 60.33 kB / 291.5 MB, free: 2.449 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.007662, allocations: 4 kB / 291.5 MB, free: 2.445 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.361e-05/0.007705, allocations: 89.03 kB / 291.6 MB, free: 2.34 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.00774, allocations: 33.7 kB / 291.6 MB, free: 2.301 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.007746, allocations: 4 kB / 291.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.007756, allocations: 0 / 291.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.643e-06/0.007758, allocations: 0 / 291.7 MB, free: 2.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.007761, allocations: 3.938 kB / 291.7 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.007775, allocations: 0 / 291.7 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.007782, allocations: 3.938 kB / 291.7 MB, free: 2.289 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 5.563e-05/0.007837, allocations: 143.6 kB / 291.8 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-06/0.007841, allocations: 0 / 291.8 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.158e-05/0.007853, allocations: 10.95 kB / 291.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.61e-07/0.007853, allocations: 0 / 291.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.007855, allocations: 0 / 291.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.007858, allocations: 0 / 291.8 MB, free: 2.117 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.1e-05/0.007899, allocations: 61.84 kB / 291.9 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.007899, allocations: 0 / 291.9 MB, free: 2.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.0079, allocations: 4 kB / 291.9 MB, free: 2.035 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.768e-06/0.007904, allocations: 3.984 kB / 291.9 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.51e-07/0.007904, allocations: 0 / 291.9 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.717e-06/0.007908, allocations: 4 kB / 291.9 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.11e-07/0.007908, allocations: 0 / 291.9 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.007909, allocations: 0 / 291.9 MB, free: 2.027 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.967e-05/0.007969, allocations: 124.4 kB / 292 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.00798, allocations: 0 / 292 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.097e-06/0.007984, allocations: 0 / 292 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.077e-06/0.007993, allocations: 4 kB / 292 MB, free: 1.871 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-06/0.007995, allocations: 0 / 292 MB, free: 1.871 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.913e-06/0.008002, allocations: 4.859 kB / 292 MB, free: 1.863 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008002, allocations: 0 / 292 MB, free: 1.863 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002643/0.008266, allocations: 123.6 kB / 292.1 MB, free: 1.742 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.0005147/0.008781, allocations: 343.1 kB / 292.5 MB, free: 1.414 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.061e-05/0.008871, allocations: 119.7 kB / 292.6 MB, free: 1.27 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.008875, allocations: 0 / 292.6 MB, free: 1.27 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.929e-05/0.008904, allocations: 89.91 kB / 292.7 MB, free: 1.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.722e-05/0.008951, allocations: 7.938 kB / 292.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001395/0.009091, allocations: 120.8 kB / 292.8 MB, free: 1 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.446e-05/0.009115, allocations: 51.36 kB / 292.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.324e-06/0.009122, allocations: 0 / 292.9 MB, free: 0.9297 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.082e-05/0.009153, allocations: 51.38 kB / 292.9 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of SimCode: time 6.11e-07/0.009154, allocations: 0 / 292.9 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of Templates: time 0.004538/0.01369, allocations: 3.831 MB / 296.7 MB, free: 13.05 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8881491012871265]