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.00192/0.00192, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002359/0.002359, allocations: 210.9 kB / 23.72 MB, free: 4.391 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.528/1.528, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.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.2441/0.2441, allocations: 46.95 MB / 360.9 MB, free: 4.043 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.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 0.002006/0.002006, allocations: 71.89 kB / 0.4966 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3906, allocations: 66.03 MB / 0.5611 GB, free: 4.18 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002382/0.3929, allocations: 0.4971 MB / 0.5616 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004311/0.3972, allocations: 1.922 MB / 0.5634 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.3973, allocations: 0 / 0.5634 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.471e-05/0.3973, allocations: 4 kB / 0.5634 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.305e-06/0.3973, allocations: 0 / 0.5634 GB, free: 1.734 MB / 398.1 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.002049/0.3993, allocations: 0.5058 MB / 0.5639 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.986e-05/0.3994, allocations: 0 / 0.5639 GB, free: 1.23 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.04e-05/0.3994, allocations: 4 kB / 0.5639 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.915e-05/0.3995, allocations: 4 kB / 0.5639 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.441e-05/0.3995, allocations: 0 / 0.5639 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.937e-06/0.3995, allocations: 0 / 0.5639 GB, free: 1.223 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.4011, allocations: 0.6706 MB / 0.5646 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.384e-05/0.4011, allocations: 3.984 kB / 0.5646 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.351e-05/0.4011, allocations: 0 / 0.5646 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008113/0.4019, allocations: 389.4 kB / 0.565 GB, free: 176 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.402, allocations: 0 / 0.565 GB, free: 176 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.402, allocations: 0 / 0.565 GB, free: 176 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.402, allocations: 4 kB / 0.565 GB, free: 172 kB / 398.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.0006085/0.4026, allocations: 335.4 kB / 0.5653 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4026, allocations: 12.02 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.985e-05/0.4027, allocations: 8.938 kB / 0.5653 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.4028, allocations: 102.5 kB / 0.5654 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/0.4028, allocations: 384 / 0.5654 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.4028, allocations: 384 / 0.5654 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001362/0.4029, allocations: 63.66 kB / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.403, allocations: 0 / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.648e-06/0.403, allocations: 0 / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.85e-06/0.403, allocations: 0 / 0.5655 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.704e-05/0.403, allocations: 37.69 kB / 0.5655 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001604/0.4032, allocations: 97.31 kB / 0.5656 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.314e-05/0.4033, allocations: 48.31 kB / 0.5657 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.888e-05/0.4033, allocations: 30.56 kB / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.758e-06/0.4033, allocations: 0 / 0.5657 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.101e-05/0.4034, allocations: 60.33 kB / 0.5657 GB, free: 15.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.4034, allocations: 3.938 kB / 0.5657 GB, free: 15.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002576/0.4037, allocations: 126.7 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.063e-05/0.4037, allocations: 77.11 kB / 0.5659 GB, free: 15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.431e-05/0.4038, allocations: 101.9 kB / 0.566 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.4038, allocations: 25.7 kB / 0.5661 GB, free: 14.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.4038, allocations: 84.14 kB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.4039, allocations: 0 / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/0.4039, allocations: 9.719 kB / 0.5661 GB, free: 14.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.404, allocations: 322.8 kB / 0.5665 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.4041, allocations: 25.7 kB / 0.5665 GB, free: 14.4 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.865e-05/0.4041, allocations: 25.7 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.499e-05/0.4041, allocations: 64.2 kB / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4041, allocations: 0 / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.164e-05/0.4042, allocations: 97.16 kB / 0.5667 GB, free: 14.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.4043, allocations: 33.7 kB / 0.5667 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.4043, allocations: 0 / 0.5667 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.4043, allocations: 3.938 kB / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.4043, allocations: 0 / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.4043, allocations: 3.938 kB / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.4043, allocations: 0 / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.4043, allocations: 4 kB / 0.5667 GB, free: 14.12 MB / 414.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 0.0001154/0.4044, allocations: 139.5 kB / 0.5668 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.234e-06/0.4044, allocations: 0 / 0.5668 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.478e-05/0.4045, allocations: 10.97 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.4045, allocations: 4 kB / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.4045, allocations: 0 / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.4045, allocations: 0 / 0.5668 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.623e-05/0.4046, allocations: 93.33 kB / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.41e-07/0.4046, allocations: 0 / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4046, allocations: 0 / 0.5669 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4046, allocations: 7.938 kB / 0.5669 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.642e-06/0.4046, allocations: 0 / 0.5669 GB, free: 13.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.4046, allocations: 7.922 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.4046, allocations: 0 / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.4047, allocations: 120.5 kB / 0.5671 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.602e-06/0.4047, allocations: 3.984 kB / 0.5671 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.4047, allocations: 4 kB / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.638e-06/0.4047, allocations: 3.938 kB / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.4047, allocations: 0 / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.4047, allocations: 0 / 0.5671 GB, free: 13.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.559e-05/0.4048, allocations: 75.28 kB / 0.5672 GB, free: 13.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4048, allocations: 0 / 0.5672 GB, free: 13.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003842/0.4052, allocations: 131.6 kB / 0.5673 GB, free: 13.46 MB / 414.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.0008128/0.406, allocations: 316.9 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.4061, allocations: 118.7 kB / 0.5677 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4061, allocations: 0 / 0.5677 GB, free: 13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.627e-05/0.4062, allocations: 89.17 kB / 0.5678 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.4063, allocations: 0 / 0.5678 GB, free: 12.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002182/0.4066, allocations: 114.7 kB / 0.5679 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.929e-05/0.4066, allocations: 55.36 kB / 0.5679 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.841e-06/0.4066, allocations: 0 / 0.5679 GB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.255e-05/0.4066, allocations: 7.438 kB / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4066, allocations: 0 / 0.5679 GB, free: 12.67 MB / 414.1 MB Notification: Performance of Templates: time 0.007685/0.4143, allocations: 3.521 MB / 0.5714 GB, free: 9.16 MB / 414.1 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.52050444111228]