Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001881/0.001881, allocations: 92.31 kB / 20.96 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.002251/0.002251, allocations: 161.7 kB / 24.27 MB, free: 172 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.482/1.482, allocations: 177.1 MB / 204.6 MB, free: 5.582 MB / 186.7 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.3352/0.3352, allocations: 34.27 MB / 295.3 MB, free: 0.6797 MB / 266.7 MB " [Timeout remaining time 180] 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.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") translateModel(ModelicaTest.Math.Random.TestSpecial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 377.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.389e-05/3.591e-05, allocations: 2.312 kB / 377.3 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.00164/0.001676, allocations: 0.5081 MB / 377.8 MB, free: 2.465 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003369/0.005045, allocations: 1.942 MB / 379.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.58e-05/0.005061, allocations: 0 / 379.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.234e-05/0.005073, allocations: 0 / 379.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.222e-06/0.005079, allocations: 0 / 379.7 MB, free: 0.5 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001574/0.006653, allocations: 0.5024 MB / 380.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.234e-05/0.006696, allocations: 0 / 380.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.323e-05/0.006729, allocations: 3.984 kB / 380.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.681e-05/0.006756, allocations: 8 kB / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.797e-05/0.006774, allocations: 0 / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.006781, allocations: 0 / 380.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.00795, allocations: 0.6703 MB / 380.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 8.686e-06/0.007959, allocations: 0 / 380.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.489e-05/0.007983, allocations: 0 / 380.9 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007419/0.008725, allocations: 494.7 kB / 381.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.008728, allocations: 0 / 381.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.008729, allocations: 0 / 381.4 MB, free: 14.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.238e-06/0.008733, allocations: 0 / 381.4 MB, free: 14.83 MB / 362.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.0005196/0.009253, allocations: 335.5 kB / 381.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.009295, allocations: 8.031 kB / 381.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.834e-05/0.009343, allocations: 4.938 kB / 381.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.009444, allocations: 101.8 kB / 381.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.009457, allocations: 384 / 381.8 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.123e-06/0.009464, allocations: 12.25 kB / 381.8 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.00957, allocations: 59.95 kB / 381.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.009578, allocations: 192 / 381.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.684e-06/0.009585, allocations: 384 / 381.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.009592, allocations: 3.938 kB / 381.9 MB, free: 14.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.608e-05/0.009628, allocations: 29.7 kB / 381.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.009758, allocations: 101.3 kB / 382 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.814e-05/0.009826, allocations: 44.31 kB / 382.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.561e-05/0.009861, allocations: 38.48 kB / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.009872, allocations: 4.062 kB / 382.1 MB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.723e-05/0.009929, allocations: 60.27 kB / 382.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.00993, allocations: 0 / 382.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002478/0.01018, allocations: 122.8 kB / 382.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.697e-05/0.01025, allocations: 81.05 kB / 382.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.742e-05/0.0103, allocations: 93.86 kB / 382.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.01032, allocations: 25.7 kB / 382.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.106e-05/0.01036, allocations: 80.14 kB / 382.6 MB, free: 13.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.01038, allocations: 3.938 kB / 382.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.403e-05/0.01042, allocations: 17.72 kB / 382.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.01058, allocations: 310.8 kB / 382.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.73e-05/0.01061, allocations: 33.77 kB / 382.9 MB, free: 13.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.353e-05/0.01063, allocations: 29.7 kB / 383 MB, free: 13.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.093e-05/0.0107, allocations: 64.25 kB / 383 MB, free: 12.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.0107, allocations: 0 / 383 MB, free: 12.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.895e-05/0.0108, allocations: 89.11 kB / 383.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.61e-05/0.01084, allocations: 29.7 kB / 383.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.01085, allocations: 3.984 kB / 383.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.01086, allocations: 0 / 383.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.01086, allocations: 0 / 383.1 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.01087, allocations: 8.031 kB / 383.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.01089, allocations: 4 kB / 383.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-06/0.01089, allocations: 3.938 kB / 383.2 MB, free: 12.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.0001017/0.011, allocations: 131.5 kB / 383.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.01101, allocations: 11.94 kB / 383.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.78e-05/0.01103, allocations: 3 kB / 383.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.01103, allocations: 0 / 383.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.01103, allocations: 3.938 kB / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.01104, allocations: 3.938 kB / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.341e-05/0.01113, allocations: 105.3 kB / 383.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.01113, allocations: 4 kB / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.575e-06/0.01113, allocations: 4 kB / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.22e-07/0.01114, allocations: 0 / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.01114, allocations: 0 / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.01114, allocations: 0 / 383.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.01115, allocations: 7.984 kB / 383.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.01129, allocations: 120.5 kB / 383.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-06/0.01129, allocations: 0 / 383.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.0113, allocations: 0 / 383.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.01131, allocations: 7.938 kB / 383.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.458e-05/0.01133, allocations: 0 / 383.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.504e-06/0.01133, allocations: 4.031 kB / 383.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.214e-05/0.01137, allocations: 79.22 kB / 383.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01137, allocations: 0 / 383.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000411/0.01178, allocations: 131.6 kB / 383.8 MB, free: 12.11 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.0008718/0.01265, allocations: 333.5 kB / 384.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002167/0.01287, allocations: 114.8 kB / 384.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01287, allocations: 3.938 kB / 384.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.951e-05/0.01295, allocations: 81.11 kB / 384.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.01308, allocations: 10.38 kB / 384.3 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002222/0.0133, allocations: 116.8 kB / 384.4 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.737e-05/0.01336, allocations: 55.3 kB / 384.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.658e-06/0.01337, allocations: 4.125 kB / 384.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.607e-05/0.01338, allocations: 12.5 kB / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01338, allocations: 0 / 384.5 MB, free: 11.3 MB / 362.7 MB Notification: Performance of Templates: time 0.008051/0.02143, allocations: 3.504 MB / 388 MB, free: 7.789 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.012684108922258]