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.001424/0.001424, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.00121/0.00121, allocations: 164.8 kB / 25.61 MB, free: 8.902 MB / 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 0.9378/0.9378, allocations: 177.1 MB / 206 MB, free: 4.504 MB / 186.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.1649/0.1649, allocations: 32.81 MB / 295.4 MB, free: 15.39 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.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.402e-06/1.402e-06, allocations: 0 / 377.3 MB, free: 25.63 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.106e-05/2.246e-05, allocations: 9.547 kB / 377.3 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001057/0.001079, allocations: 0.4971 MB / 377.8 MB, free: 25.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.002858, allocations: 1.969 MB / 379.7 MB, free: 23.13 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.151e-05/0.00288, allocations: 0 / 379.7 MB, free: 23.13 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.811e-05/0.002898, allocations: 0 / 379.7 MB, free: 23.13 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 7.915e-06/0.002906, allocations: 4 kB / 379.7 MB, free: 23.12 MB / 314.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.001147/0.004053, allocations: 0.5023 MB / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 4.313e-05/0.004096, allocations: 0 / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.461e-05/0.00413, allocations: 4 kB / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.303e-05/0.004153, allocations: 0 / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.06e-05/0.004174, allocations: 0 / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.965e-06/0.004182, allocations: 0 / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006788/0.004861, allocations: 0.647 MB / 380.9 MB, free: 21.97 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-06/0.004869, allocations: 4 kB / 380.9 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.346e-05/0.004882, allocations: 0 / 380.9 MB, free: 21.96 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004319/0.005314, allocations: 474.7 kB / 381.4 MB, free: 21.5 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.734e-06/0.005316, allocations: 0 / 381.4 MB, free: 21.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.005317, allocations: 0 / 381.4 MB, free: 21.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.005321, allocations: 0 / 381.4 MB, free: 21.5 MB / 314.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.0002938/0.005615, allocations: 445.4 kB / 381.8 MB, free: 21.02 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.005651, allocations: 15.98 kB / 381.8 MB, free: 21.01 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.873e-05/0.00568, allocations: 4.938 kB / 381.8 MB, free: 21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.202e-05/0.005722, allocations: 104.6 kB / 381.9 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.005732, allocations: 4.312 kB / 381.9 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-06/0.005738, allocations: 384 / 381.9 MB, free: 20.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.311e-05/0.005801, allocations: 55.97 kB / 382 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.005808, allocations: 192 / 382 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.111e-06/0.005814, allocations: 384 / 382 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.00582, allocations: 3.938 kB / 382 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.164e-05/0.005832, allocations: 37.62 kB / 382 MB, free: 20.76 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.188e-05/0.005893, allocations: 97.27 kB / 382.1 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.417e-05/0.005928, allocations: 52.8 kB / 382.2 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.194e-05/0.00594, allocations: 33.39 kB / 382.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-06/0.005943, allocations: 0 / 382.2 MB, free: 20.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.005966, allocations: 67.16 kB / 382.3 MB, free: 20.44 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 5.71e-07/0.005967, allocations: 0 / 382.3 MB, free: 20.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.006094, allocations: 118.7 kB / 382.4 MB, free: 20.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.182e-05/0.006116, allocations: 77.11 kB / 382.4 MB, free: 20.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.713e-05/0.006143, allocations: 146.2 kB / 382.6 MB, free: 20.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-06/0.006148, allocations: 25.83 kB / 382.6 MB, free: 20.02 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.281e-05/0.00616, allocations: 134.9 kB / 382.7 MB, free: 19.88 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.446e-05/0.006175, allocations: 0 / 382.7 MB, free: 19.88 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.119e-05/0.006196, allocations: 15.38 kB / 382.8 MB, free: 19.86 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.598e-05/0.006242, allocations: 0.4922 MB / 383.3 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/0.006252, allocations: 25.7 kB / 383.3 MB, free: 19.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.847e-06/0.006261, allocations: 29.7 kB / 383.3 MB, free: 19.29 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.059e-05/0.006292, allocations: 67.03 kB / 383.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.006294, allocations: 0 / 383.4 MB, free: 19.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.684e-05/0.00634, allocations: 89.09 kB / 383.5 MB, free: 19.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.006364, allocations: 37.8 kB / 383.5 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.006368, allocations: 0 / 383.5 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.556e-06/0.006377, allocations: 0 / 383.5 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.292e-06/0.006378, allocations: 0 / 383.5 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.605e-06/0.006381, allocations: 0 / 383.5 MB, free: 19.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.152e-05/0.006392, allocations: 3.938 kB / 383.5 MB, free: 19.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.006397, allocations: 0 / 383.5 MB, free: 19.05 MB / 314.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 4.211e-05/0.006439, allocations: 182.3 kB / 383.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.47e-06/0.006445, allocations: 4.328 kB / 383.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.524e-06/0.006452, allocations: 7 kB / 383.7 MB, free: 18.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.006454, allocations: 7.938 kB / 383.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.006456, allocations: 0 / 383.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.006459, allocations: 0 / 383.7 MB, free: 18.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.001e-05/0.006499, allocations: 97.2 kB / 383.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.0065, allocations: 0 / 383.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.71e-07/0.0065, allocations: 4 kB / 383.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.006502, allocations: 0 / 383.8 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-06/0.006505, allocations: 3.938 kB / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.006506, allocations: 0 / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.006507, allocations: 0 / 383.8 MB, free: 18.71 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.335e-05/0.00657, allocations: 135.7 kB / 383.9 MB, free: 18.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-06/0.006577, allocations: 16.02 kB / 383.9 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.878e-06/0.006587, allocations: 0 / 383.9 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.829e-06/0.006592, allocations: 3.984 kB / 384 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.628e-06/0.006601, allocations: 0 / 384 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.006604, allocations: 8 kB / 384 MB, free: 18.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.739e-05/0.006621, allocations: 123.2 kB / 384.1 MB, free: 18.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.006621, allocations: 0 / 384.1 MB, free: 18.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003067/0.006928, allocations: 123.6 kB / 384.2 MB, free: 18.28 MB / 314.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.000534/0.007462, allocations: 336.7 kB / 384.5 MB, free: 17.95 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 7.94e-05/0.007542, allocations: 126.4 kB / 384.7 MB, free: 17.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.007543, allocations: 0 / 384.7 MB, free: 17.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.598e-05/0.007559, allocations: 92.84 kB / 384.7 MB, free: 17.68 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.17e-05/0.007641, allocations: 8 kB / 384.8 MB, free: 17.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001358/0.007777, allocations: 112.5 kB / 384.9 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.632e-05/0.007793, allocations: 55.22 kB / 384.9 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.19e-06/0.007798, allocations: 0 / 384.9 MB, free: 17.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.469e-05/0.007823, allocations: 78.19 kB / 385 MB, free: 17.38 MB / 314.7 MB Notification: Performance of SimCode: time 1.393e-06/0.007824, allocations: 0 / 385 MB, free: 17.38 MB / 314.7 MB Notification: Performance of Templates: time 0.004784/0.01261, allocations: 3.936 MB / 388.9 MB, free: 13.45 MB / 314.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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.211874898057431]