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.0026/0.0026, allocations: 95.61 kB / 20.96 MB, free: 3.453 MB / 18.57 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.003373/0.003373, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 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.707/1.707, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.3871/0.3871, allocations: 32.8 MB / 293.9 MB, free: 1.195 MB / 266.7 MB " [Timeout remaining time 179] 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.854e-06/1.854e-06, allocations: 0 / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.642e-05/3.827e-05, allocations: 6.25 kB / 375.3 MB, free: 4.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002195/0.002233, allocations: 0.5081 MB / 375.8 MB, free: 4.477 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.004436/0.006669, allocations: 1.957 MB / 377.7 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.876e-05/0.006688, allocations: 0 / 377.7 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.605e-05/0.006704, allocations: 0 / 377.7 MB, free: 2.496 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.264e-06/0.006711, allocations: 0 / 377.7 MB, free: 2.496 MB / 346.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.002229/0.008941, allocations: 0.4945 MB / 378.2 MB, free: 2 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.721e-05/0.008988, allocations: 3.984 kB / 378.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.25e-05/0.00902, allocations: 0 / 378.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.92e-05/0.00906, allocations: 11.92 kB / 378.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.036e-05/0.00908, allocations: 0 / 378.2 MB, free: 1.984 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.408e-06/0.009089, allocations: 4 kB / 378.2 MB, free: 1.98 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.01083, allocations: 0.6705 MB / 378.9 MB, free: 1.309 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.526e-06/0.01083, allocations: 7.875 kB / 378.9 MB, free: 1.301 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.569e-05/0.01086, allocations: 3.984 kB / 378.9 MB, free: 1.297 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.01201, allocations: 486.8 kB / 379.4 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.01201, allocations: 0 / 379.4 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01201, allocations: 0 / 379.4 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.01202, allocations: 0 / 379.4 MB, free: 0.8203 MB / 346.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.0006635/0.01268, allocations: 441.4 kB / 379.8 MB, free: 356 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.01273, allocations: 8.031 kB / 379.8 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.01278, allocations: 4.938 kB / 379.8 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.01291, allocations: 108.6 kB / 379.9 MB, free: 208 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.01293, allocations: 4.375 kB / 379.9 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.598e-06/0.01294, allocations: 384 / 379.9 MB, free: 204 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.01309, allocations: 67.89 kB / 380 MB, free: 124 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.0131, allocations: 4.188 kB / 380 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.01311, allocations: 384 / 380 MB, free: 120 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.01311, allocations: 3.938 kB / 380 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.45e-05/0.01316, allocations: 29.7 kB / 380.1 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001917/0.01335, allocations: 104.6 kB / 380.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.01345, allocations: 56.78 kB / 380.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.94e-05/0.0135, allocations: 33.39 kB / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.01352, allocations: 8.047 kB / 380.2 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.947e-05/0.0136, allocations: 67.03 kB / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.462e-06/0.0136, allocations: 0 / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002869/0.01389, allocations: 114.8 kB / 380.4 MB, free: 15.6 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001007/0.01399, allocations: 89.03 kB / 380.5 MB, free: 15.49 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.01412, allocations: 146.2 kB / 380.7 MB, free: 15.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.645e-05/0.01415, allocations: 25.7 kB / 380.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.958e-05/0.01422, allocations: 126.9 kB / 380.8 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/0.01424, allocations: 3.938 kB / 380.8 MB, free: 15.17 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.15e-05/0.01429, allocations: 19.38 kB / 380.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003532/0.01464, allocations: 492.1 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.893e-05/0.01468, allocations: 25.7 kB / 381.3 MB, free: 14.62 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.846e-05/0.01472, allocations: 29.83 kB / 381.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.566e-05/0.01482, allocations: 79.08 kB / 381.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.01482, allocations: 0 / 381.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000144/0.01496, allocations: 89.05 kB / 381.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.307e-05/0.01502, allocations: 29.7 kB / 381.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.01502, allocations: 0 / 381.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.01504, allocations: 0 / 381.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.508e-06/0.01504, allocations: 4 kB / 381.6 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.01505, allocations: 7.922 kB / 381.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.01507, allocations: 0 / 381.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.01508, allocations: 4.031 kB / 381.6 MB, free: 14.34 MB / 362.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 0.0001818/0.01526, allocations: 190.3 kB / 381.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.01528, allocations: 3.953 kB / 381.8 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.708e-06/0.01529, allocations: 6.938 kB / 381.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.01529, allocations: 0 / 381.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.0153, allocations: 0 / 381.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.0153, allocations: 7.938 kB / 381.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.01544, allocations: 108.6 kB / 381.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01544, allocations: 0 / 381.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.31e-07/0.01544, allocations: 0 / 381.9 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.01545, allocations: 4 kB / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.01546, allocations: 4 kB / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01546, allocations: 0 / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01546, allocations: 0 / 381.9 MB, free: 13.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.01569, allocations: 131.8 kB / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-06/0.0157, allocations: 0 / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.01572, allocations: 8 kB / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.616e-06/0.01573, allocations: 0 / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.409e-05/0.01574, allocations: 0 / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.01574, allocations: 0 / 382 MB, free: 13.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.922e-05/0.01581, allocations: 123.1 kB / 382.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01581, allocations: 11.97 kB / 382.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007036/0.01652, allocations: 131.6 kB / 382.3 MB, free: 13.54 MB / 362.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.001312/0.01783, allocations: 335 kB / 382.6 MB, free: 13.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002032/0.01803, allocations: 122.5 kB / 382.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.01803, allocations: 0 / 382.7 MB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.01815, allocations: 88.8 kB / 382.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002142/0.01836, allocations: 11.92 kB / 382.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.01866, allocations: 114.5 kB / 382.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.92e-05/0.01874, allocations: 55.36 kB / 383 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.192e-06/0.01875, allocations: 0 / 383 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.393e-05/0.01877, allocations: 12.5 kB / 383 MB, free: 12.7 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01877, allocations: 4.125 kB / 383 MB, free: 12.7 MB / 362.7 MB Notification: Performance of Templates: time 0.01206/0.03084, allocations: 3.52 MB / 386.5 MB, free: 9.18 MB / 362.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.219141472945921]