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.001611/0.001611, allocations: 69.72 kB / 21.24 MB, free: 0.5547 MB / 14.72 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.001545/0.001545, allocations: 162.5 kB / 24.5 MB, free: 3.711 MB / 14.72 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.441/1.441, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 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.2298/0.2298, allocations: 32.81 MB / 294.1 MB, free: 16 kB / 270.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 59.91 kB / 440.6 MB, free: 9.438 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2942/0.2963, allocations: 65.44 MB / 0.4941 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001394/0.2977, allocations: 0.511 MB / 0.4946 GB, free: 31.08 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.2997, allocations: 1.924 MB / 0.4965 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.727e-05/0.2997, allocations: 0 / 0.4965 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.831e-05/0.2997, allocations: 0 / 0.4965 GB, free: 29.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.779e-06/0.2997, allocations: 0 / 0.4965 GB, free: 29.79 MB / 446.1 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.00115/0.3008, allocations: 0.5018 MB / 0.497 GB, free: 29.6 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.417e-05/0.3009, allocations: 7.188 kB / 0.497 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.52e-05/0.3009, allocations: 3.328 kB / 0.497 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.262e-05/0.3009, allocations: 3.984 kB / 0.497 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.663e-05/0.301, allocations: 7.125 kB / 0.497 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.121e-06/0.301, allocations: 0 / 0.497 GB, free: 29.59 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007934/0.3018, allocations: 0.6566 MB / 0.4977 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.514e-06/0.3018, allocations: 4 kB / 0.4977 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.554e-05/0.3018, allocations: 0 / 0.4977 GB, free: 29.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.3022, allocations: 398.9 kB / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3022, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3022, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.3022, allocations: 0 / 0.4981 GB, free: 29.29 MB / 446.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.000294/0.3025, allocations: 333.6 kB / 0.4984 GB, free: 28.96 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.702e-05/0.3025, allocations: 9.719 kB / 0.4984 GB, free: 28.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.539e-05/0.3026, allocations: 0.9375 kB / 0.4984 GB, free: 28.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.86e-05/0.3026, allocations: 110.5 kB / 0.4985 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.3026, allocations: 384 / 0.4985 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-06/0.3026, allocations: 3.25 kB / 0.4985 GB, free: 28.83 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.034e-05/0.3027, allocations: 62.11 kB / 0.4986 GB, free: 28.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.3027, allocations: 3.938 kB / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.3027, allocations: 0 / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.3027, allocations: 0 / 0.4986 GB, free: 28.76 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.959e-05/0.3027, allocations: 32.64 kB / 0.4986 GB, free: 28.73 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.445e-05/0.3028, allocations: 97.27 kB / 0.4987 GB, free: 28.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.168e-05/0.3028, allocations: 47.31 kB / 0.4987 GB, free: 28.54 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.3029, allocations: 41.42 kB / 0.4988 GB, free: 28.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.3029, allocations: 0 / 0.4988 GB, free: 28.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.3029, allocations: 56.27 kB / 0.4988 GB, free: 28.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3029, allocations: 0 / 0.4988 GB, free: 28.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.303, allocations: 127.9 kB / 0.4989 GB, free: 28.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.218e-05/0.303, allocations: 77.11 kB / 0.499 GB, free: 28.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.7e-05/0.3031, allocations: 97 kB / 0.4991 GB, free: 28.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.34e-06/0.3031, allocations: 25.7 kB / 0.4991 GB, free: 28.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-06/0.3031, allocations: 80.14 kB / 0.4992 GB, free: 27.98 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.242e-05/0.3031, allocations: 0 / 0.4992 GB, free: 27.98 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.3031, allocations: 17.03 kB / 0.4992 GB, free: 27.96 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.375e-05/0.3031, allocations: 314.8 kB / 0.4995 GB, free: 27.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.457e-05/0.3032, allocations: 32.11 kB / 0.4996 GB, free: 27.62 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.977e-06/0.3032, allocations: 25.7 kB / 0.4996 GB, free: 27.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.237e-05/0.3032, allocations: 63.23 kB / 0.4996 GB, free: 27.51 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.3032, allocations: 0 / 0.4996 GB, free: 27.51 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.15e-05/0.3033, allocations: 97.73 kB / 0.4997 GB, free: 27.41 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3033, allocations: 31.95 kB / 0.4998 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.3033, allocations: 0 / 0.4998 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3033, allocations: 4.031 kB / 0.4998 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.51e-07/0.3033, allocations: 4 kB / 0.4998 GB, free: 27.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/0.3033, allocations: 0 / 0.4998 GB, free: 27.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.261e-05/0.3033, allocations: 0 / 0.4998 GB, free: 27.37 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.252e-06/0.3033, allocations: 7.141 kB / 0.4998 GB, free: 27.37 MB / 446.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 4.115e-05/0.3034, allocations: 138.2 kB / 0.4999 GB, free: 27.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.3034, allocations: 0 / 0.4999 GB, free: 27.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.476e-06/0.3034, allocations: 6.938 kB / 0.4999 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.3034, allocations: 0 / 0.4999 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3034, allocations: 0 / 0.4999 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-06/0.3034, allocations: 0 / 0.4999 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.375e-05/0.3034, allocations: 100.5 kB / 0.5 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.3034, allocations: 0 / 0.5 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.82e-07/0.3034, allocations: 3.422 kB / 0.5 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.3034, allocations: 0 / 0.5 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-06/0.3034, allocations: 7.25 kB / 0.5 GB, free: 27.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3034, allocations: 3.938 kB / 0.5 GB, free: 27.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3034, allocations: 3.938 kB / 0.5 GB, free: 27.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.772e-05/0.3035, allocations: 124.5 kB / 0.5001 GB, free: 26.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-06/0.3035, allocations: 0 / 0.5001 GB, free: 26.94 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.009e-05/0.3035, allocations: 3.25 kB / 0.5002 GB, free: 26.94 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.077e-06/0.3035, allocations: 7.969 kB / 0.5002 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.391e-05/0.3035, allocations: 0 / 0.5002 GB, free: 26.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.3035, allocations: 0 / 0.5002 GB, free: 26.93 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.508e-06/0.3035, allocations: 75.28 kB / 0.5002 GB, free: 26.86 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3035, allocations: 2.938 kB / 0.5002 GB, free: 26.86 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003255/0.3039, allocations: 127.1 kB / 0.5004 GB, free: 26.83 MB / 446.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.0005983/0.3045, allocations: 313.6 kB / 0.5007 GB, free: 26.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.628e-05/0.3045, allocations: 112.5 kB / 0.5008 GB, free: 26.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3045, allocations: 0 / 0.5008 GB, free: 26.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.71e-05/0.3046, allocations: 84.11 kB / 0.5008 GB, free: 26.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000126/0.3047, allocations: 9.562 kB / 0.5009 GB, free: 26.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000139/0.3048, allocations: 113.9 kB / 0.501 GB, free: 26.32 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.209e-05/0.3048, allocations: 62.59 kB / 0.501 GB, free: 26.24 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.829e-06/0.3049, allocations: 0 / 0.501 GB, free: 26.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.936e-06/0.3049, allocations: 15.59 kB / 0.501 GB, free: 26.23 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3049, allocations: 0 / 0.501 GB, free: 26.23 MB / 446.1 MB Notification: Performance of Templates: time 0.00597/0.3108, allocations: 3.532 MB / 0.5045 GB, free: 25.95 MB / 446.1 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=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins1/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: 4.937619603006169]