Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.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.001787/0.001787, allocations: 75.73 kB / 21.24 MB, free: 400 kB / 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.002226/0.002226, allocations: 167.9 kB / 24.5 MB, free: 3.453 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.515/1.515, allocations: 177.2 MB / 204.9 MB, free: 9.035 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2278/0.2278, allocations: 34.26 MB / 295.5 MB, free: 14.59 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00234/0.00234, allocations: 63.89 kB / 443.1 MB, free: 6.719 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3069, allocations: 66.01 MB / 0.4972 GB, free: 29.86 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00141/0.3083, allocations: 0.505 MB / 0.4977 GB, free: 29.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.3104, allocations: 2.008 MB / 0.4997 GB, free: 28.21 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.185e-05/0.3104, allocations: 0 / 0.4997 GB, free: 28.21 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.047e-05/0.3104, allocations: 0 / 0.4997 GB, free: 28.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.549e-06/0.3105, allocations: 0 / 0.4997 GB, free: 28.21 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001157/0.3116, allocations: 0.5183 MB / 0.5002 GB, free: 28 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 3.79e-05/0.3116, allocations: 4 kB / 0.5002 GB, free: 28 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.836e-05/0.3117, allocations: 0 / 0.5002 GB, free: 28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.658e-05/0.3117, allocations: 3.188 kB / 0.5002 GB, free: 28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.509e-05/0.3117, allocations: 4 kB / 0.5002 GB, free: 28 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-06/0.3117, allocations: 3.984 kB / 0.5002 GB, free: 27.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008061/0.3125, allocations: 0.6401 MB / 0.5008 GB, free: 27.81 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.472e-06/0.3125, allocations: 0 / 0.5008 GB, free: 27.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.525e-05/0.3125, allocations: 0 / 0.5008 GB, free: 27.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004298/0.313, allocations: 395.4 kB / 0.5012 GB, free: 27.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.313, allocations: 0 / 0.5012 GB, free: 27.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.313, allocations: 0 / 0.5012 GB, free: 27.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.313, allocations: 0 / 0.5012 GB, free: 27.7 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.0002884/0.3133, allocations: 340 kB / 0.5015 GB, free: 27.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3133, allocations: 9.531 kB / 0.5015 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.3133, allocations: 4.453 kB / 0.5015 GB, free: 27.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.916e-05/0.3134, allocations: 109.6 kB / 0.5016 GB, free: 27.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.3134, allocations: 4.312 kB / 0.5016 GB, free: 27.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.412e-06/0.3134, allocations: 4.375 kB / 0.5016 GB, free: 27.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.486e-05/0.3135, allocations: 58.69 kB / 0.5017 GB, free: 27.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.3135, allocations: 0 / 0.5017 GB, free: 27.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.3135, allocations: 0 / 0.5017 GB, free: 27.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3135, allocations: 3.094 kB / 0.5017 GB, free: 27.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.971e-05/0.3135, allocations: 33.02 kB / 0.5017 GB, free: 27.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.567e-05/0.3136, allocations: 100.4 kB / 0.5018 GB, free: 27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.696e-05/0.3136, allocations: 47.28 kB / 0.5019 GB, free: 26.94 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.3136, allocations: 30.56 kB / 0.5019 GB, free: 26.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.226e-06/0.3137, allocations: 0 / 0.5019 GB, free: 26.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.3137, allocations: 66.72 kB / 0.502 GB, free: 26.82 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3137, allocations: 0 / 0.502 GB, free: 26.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.3138, allocations: 121.2 kB / 0.5021 GB, free: 26.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.3138, allocations: 83.45 kB / 0.5022 GB, free: 26.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.549e-05/0.3139, allocations: 89.86 kB / 0.5022 GB, free: 26.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.3139, allocations: 25.7 kB / 0.5023 GB, free: 26.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.714e-06/0.3139, allocations: 84.08 kB / 0.5023 GB, free: 26.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.3139, allocations: 0 / 0.5023 GB, free: 26.38 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.106e-05/0.3139, allocations: 16.69 kB / 0.5024 GB, free: 26.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.414e-05/0.3139, allocations: 313.9 kB / 0.5027 GB, free: 26.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.293e-05/0.314, allocations: 29.83 kB / 0.5027 GB, free: 26.01 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.538e-06/0.314, allocations: 28.77 kB / 0.5027 GB, free: 25.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.829e-05/0.314, allocations: 63.08 kB / 0.5028 GB, free: 25.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.314, allocations: 3.938 kB / 0.5028 GB, free: 25.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.957e-05/0.314, allocations: 87.08 kB / 0.5029 GB, free: 25.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3141, allocations: 37.2 kB / 0.5029 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.3141, allocations: 0 / 0.5029 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.2e-05/0.3141, allocations: 3.938 kB / 0.5029 GB, free: 25.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.52e-07/0.3141, allocations: 0 / 0.5029 GB, free: 25.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.3141, allocations: 11.31 kB / 0.5029 GB, free: 25.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.148e-05/0.3141, allocations: 0 / 0.5029 GB, free: 25.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-06/0.3141, allocations: 0 / 0.5029 GB, free: 25.77 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 3.921e-05/0.3141, allocations: 135.4 kB / 0.503 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-06/0.3141, allocations: 0 / 0.503 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.265e-06/0.3142, allocations: 14.27 kB / 0.5031 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.3142, allocations: 3.938 kB / 0.5031 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3142, allocations: 3.156 kB / 0.5031 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3142, allocations: 0 / 0.5031 GB, free: 25.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.201e-05/0.3142, allocations: 93.33 kB / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3142, allocations: 0 / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.3142, allocations: 8 kB / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.42e-07/0.3142, allocations: 3.188 kB / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.3142, allocations: 0 / 0.5032 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3142, allocations: 3.938 kB / 0.5032 GB, free: 25.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3142, allocations: 7.547 kB / 0.5032 GB, free: 25.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.831e-05/0.3143, allocations: 113.4 kB / 0.5033 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.15e-06/0.3143, allocations: 3.328 kB / 0.5033 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.3143, allocations: 3.25 kB / 0.5033 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3143, allocations: 7.875 kB / 0.5033 GB, free: 25.33 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.3143, allocations: 0 / 0.5033 GB, free: 25.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.3143, allocations: 4.031 kB / 0.5033 GB, free: 25.33 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.115e-05/0.3143, allocations: 78.41 kB / 0.5034 GB, free: 25.25 MB / 446.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3143, allocations: 0 / 0.5034 GB, free: 25.25 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003355/0.3147, allocations: 133.5 kB / 0.5035 GB, free: 25.22 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.0005496/0.3152, allocations: 312.4 kB / 0.5038 GB, free: 25.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 7.749e-05/0.3153, allocations: 116.5 kB / 0.5039 GB, free: 24.93 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3153, allocations: 0 / 0.5039 GB, free: 24.93 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.959e-05/0.3153, allocations: 84.17 kB / 0.504 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001167/0.3154, allocations: 1.375 kB / 0.504 GB, free: 24.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001362/0.3156, allocations: 117.8 kB / 0.5041 GB, free: 24.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.259e-05/0.3156, allocations: 60.03 kB / 0.5042 GB, free: 24.62 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.278e-06/0.3156, allocations: 0 / 0.5042 GB, free: 24.62 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.846e-06/0.3156, allocations: 10.16 kB / 0.5042 GB, free: 24.61 MB / 446.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3156, allocations: 1.656 kB / 0.5042 GB, free: 24.61 MB / 446.1 MB Notification: Performance of Templates: time 0.005895/0.3215, allocations: 3.507 MB / 0.5076 GB, free: 24.33 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.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.205426389933564]