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.001517/0.001517, allocations: 88.31 kB / 20.95 MB, free: 3.473 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.001649/0.001649, allocations: 161.7 kB / 24.27 MB, free: 168 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.517/1.517, 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.3343/0.3343, allocations: 32.79 MB / 293.9 MB, free: 1.195 MB / 266.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.794e-06/1.794e-06, allocations: 0 / 375.2 MB, free: 4.98 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.597e-05/2.776e-05, allocations: 2.312 kB / 375.3 MB, free: 4.977 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001553/0.001581, allocations: 0.5113 MB / 375.8 MB, free: 4.465 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003219/0.0048, allocations: 1.926 MB / 377.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.306e-05/0.004813, allocations: 0 / 377.7 MB, free: 2.516 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.039e-05/0.004823, allocations: 4 kB / 377.7 MB, free: 2.512 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.004829, allocations: 0 / 377.7 MB, free: 2.512 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.001434/0.006263, allocations: 0.4984 MB / 378.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.058e-05/0.006314, allocations: 0 / 378.2 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.249e-05/0.006346, allocations: 4 kB / 378.2 MB, free: 2.008 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.884e-05/0.006375, allocations: 7.969 kB / 378.2 MB, free: 2 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.679e-05/0.006392, allocations: 3.938 kB / 378.2 MB, free: 1.996 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.374e-06/0.006399, allocations: 4 kB / 378.2 MB, free: 1.992 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0011/0.007499, allocations: 0.6743 MB / 378.9 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.556e-06/0.007508, allocations: 0 / 378.9 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.124e-05/0.007529, allocations: 0 / 378.9 MB, free: 1.316 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00071/0.008239, allocations: 490.7 kB / 379.4 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.008241, allocations: 0 / 379.4 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.008245, allocations: 4 kB / 379.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.008249, allocations: 0 / 379.4 MB, free: 0.832 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.00046/0.008709, allocations: 335.4 kB / 379.7 MB, free: 480 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.008746, allocations: 12.03 kB / 379.7 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.915e-05/0.008785, allocations: 0.9375 kB / 379.7 MB, free: 468 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.557e-05/0.008881, allocations: 101.8 kB / 379.8 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.008898, allocations: 8.375 kB / 379.8 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.008908, allocations: 4.375 kB / 379.8 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001093/0.009017, allocations: 55.95 kB / 379.9 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.924e-06/0.009025, allocations: 4.188 kB / 379.9 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.009035, allocations: 4.375 kB / 379.9 MB, free: 252 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.009041, allocations: 3.938 kB / 379.9 MB, free: 248 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.099e-05/0.009082, allocations: 29.64 kB / 379.9 MB, free: 212 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001372/0.009219, allocations: 101.3 kB / 380 MB, free: 80 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.205e-05/0.009281, allocations: 40.28 kB / 380.1 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.5e-05/0.009336, allocations: 42.64 kB / 380.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.205e-06/0.009344, allocations: 0 / 380.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/0.0094, allocations: 56.27 kB / 380.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 6.91e-07/0.009401, allocations: 0 / 380.2 MB, free: 15.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002196/0.00962, allocations: 118.8 kB / 380.3 MB, free: 15.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.009695, allocations: 93.03 kB / 380.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.055e-05/0.009755, allocations: 89.86 kB / 380.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.009774, allocations: 25.7 kB / 380.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.999e-05/0.009824, allocations: 80.14 kB / 380.5 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.00984, allocations: 3.938 kB / 380.6 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.009872, allocations: 13.72 kB / 380.6 MB, free: 15.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.01004, allocations: 310.8 kB / 380.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.798e-05/0.01007, allocations: 25.7 kB / 380.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.877e-05/0.0101, allocations: 33.77 kB / 380.9 MB, free: 15.04 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.349e-05/0.01018, allocations: 72.31 kB / 381 MB, free: 14.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.01018, allocations: 0 / 381 MB, free: 14.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001007/0.01028, allocations: 89.05 kB / 381.1 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.579e-05/0.01032, allocations: 29.7 kB / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.01032, allocations: 0 / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.01034, allocations: 0 / 381.1 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.16e-06/0.01034, allocations: 3.984 kB / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.01035, allocations: 7.938 kB / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.368e-05/0.01036, allocations: 0 / 381.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.01037, allocations: 4.031 kB / 381.1 MB, free: 14.79 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.0001072/0.01048, allocations: 139.5 kB / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.061e-05/0.01049, allocations: 3.953 kB / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.925e-06/0.0105, allocations: 3 kB / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-06/0.0105, allocations: 0 / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.0105, allocations: 0 / 381.3 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.0105, allocations: 3.938 kB / 381.3 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.812e-05/0.01059, allocations: 101.3 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.01059, allocations: 0 / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.01059, allocations: 0 / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.01059, allocations: 0 / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.0106, allocations: 4 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.0106, allocations: 4 kB / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.0106, allocations: 0 / 381.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001382/0.01074, allocations: 124.4 kB / 381.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.487e-06/0.01074, allocations: 0 / 381.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.01076, allocations: 8 kB / 381.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.366e-06/0.01077, allocations: 0 / 381.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.01078, allocations: 0 / 381.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.01078, allocations: 0 / 381.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.297e-05/0.01083, allocations: 79.22 kB / 381.6 MB, free: 14.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01083, allocations: 4.031 kB / 381.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004277/0.01125, allocations: 135.6 kB / 381.7 MB, free: 14.12 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.0008657/0.01212, allocations: 341.7 kB / 382.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.01227, allocations: 114.7 kB / 382.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.01227, allocations: 0 / 382.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.01243, allocations: 81.11 kB / 382.3 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.01257, allocations: 13.5 kB / 382.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002194/0.01279, allocations: 108.8 kB / 382.4 MB, free: 13.4 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.112e-05/0.01284, allocations: 51.36 kB / 382.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.408e-06/0.01285, allocations: 0 / 382.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.426e-05/0.01286, allocations: 12.5 kB / 382.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01286, allocations: 128 / 382.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of Templates: time 0.008077/0.02094, allocations: 3.518 MB / 386 MB, free: 9.801 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=480 -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/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.021837807958946]