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.0008745/0.0008745, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009202/0.0009202, allocations: 171.8 kB / 24.92 MB, free: 8.723 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.9205/0.9205, allocations: 177.1 MB / 205.3 MB, free: 5.121 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.2353/0.2353, allocations: 32.8 MB / 294.6 MB, free: 1.137 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.083e-06/1.083e-06, allocations: 0 / 323.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.934e-05, allocations: 5.359 kB / 323.3 MB, free: 9.668 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001108/0.001127, allocations: 0.5568 MB / 323.8 MB, free: 9.109 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002266/0.003393, allocations: 1.981 MB / 325.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.578e-05/0.003409, allocations: 0 / 325.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.226e-05/0.003421, allocations: 0 / 325.8 MB, free: 7.105 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.154e-06/0.003428, allocations: 0 / 325.8 MB, free: 7.105 MB / 298.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.0009162/0.004344, allocations: 462.3 kB / 326.3 MB, free: 6.652 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.232e-05/0.004387, allocations: 8.625 kB / 326.3 MB, free: 6.645 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.135e-05/0.004418, allocations: 3.984 kB / 326.3 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.426e-05/0.004442, allocations: 0 / 326.3 MB, free: 6.641 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.557e-05/0.004458, allocations: 7.984 kB / 326.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-06/0.004466, allocations: 4 kB / 326.3 MB, free: 6.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007128/0.005179, allocations: 0.6939 MB / 327 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.733e-06/0.005185, allocations: 0 / 327 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.103e-05/0.005197, allocations: 0 / 327 MB, free: 5.934 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004043/0.005601, allocations: 475.4 kB / 327.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.005603, allocations: 0 / 327.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.005603, allocations: 0 / 327.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.005607, allocations: 4 kB / 327.4 MB, free: 5.465 MB / 298.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.0002439/0.005851, allocations: 305.7 kB / 327.7 MB, free: 5.137 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.005881, allocations: 12.03 kB / 327.8 MB, free: 5.125 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.002e-05/0.005901, allocations: 0.9375 kB / 327.8 MB, free: 5.125 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.001e-05/0.005951, allocations: 109.7 kB / 327.9 MB, free: 4.992 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.614e-06/0.005959, allocations: 384 / 327.9 MB, free: 4.992 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-06/0.005964, allocations: 4.375 kB / 327.9 MB, free: 4.988 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.496e-05/0.006019, allocations: 59.95 kB / 327.9 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.37e-06/0.006024, allocations: 192 / 327.9 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.659e-06/0.006029, allocations: 4.375 kB / 327.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.006033, allocations: 3.938 kB / 327.9 MB, free: 4.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.398e-05/0.006047, allocations: 29.7 kB / 328 MB, free: 4.875 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.599e-05/0.006103, allocations: 57.05 kB / 328 MB, free: 4.805 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.171e-05/0.006145, allocations: 44.22 kB / 328.1 MB, free: 4.746 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.708e-05/0.006162, allocations: 38.64 kB / 328.1 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-06/0.006165, allocations: 0 / 328.1 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.028e-05/0.006195, allocations: 56.27 kB / 328.2 MB, free: 4.629 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 4.91e-07/0.006195, allocations: 4 kB / 328.2 MB, free: 4.625 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001048/0.0063, allocations: 110.8 kB / 328.3 MB, free: 4.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.268e-05/0.006333, allocations: 81.09 kB / 328.3 MB, free: 4.395 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.264e-05/0.006366, allocations: 89.86 kB / 328.4 MB, free: 4.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.006377, allocations: 33.64 kB / 328.5 MB, free: 4.258 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.526e-05/0.006402, allocations: 84.14 kB / 328.5 MB, free: 4.172 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.738e-05/0.006419, allocations: 5.141 kB / 328.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.006441, allocations: 9.719 kB / 328.6 MB, free: 4.152 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.383e-05/0.006525, allocations: 318.8 kB / 328.9 MB, free: 3.832 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.413e-05/0.006539, allocations: 25.83 kB / 328.9 MB, free: 3.801 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.006553, allocations: 29.7 kB / 328.9 MB, free: 3.766 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.978e-05/0.006593, allocations: 64.25 kB / 329 MB, free: 3.688 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.006595, allocations: 0 / 329 MB, free: 3.688 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.064e-05/0.006645, allocations: 85.11 kB / 329.1 MB, free: 3.586 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.006669, allocations: 29.7 kB / 329.1 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.006673, allocations: 0 / 329.1 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.385e-06/0.006682, allocations: 0 / 329.1 MB, free: 3.551 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.887e-06/0.006685, allocations: 15.86 kB / 329.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.304e-06/0.006688, allocations: 0 / 329.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.355e-06/0.006696, allocations: 8.094 kB / 329.1 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.006702, allocations: 3.938 kB / 329.1 MB, free: 3.523 MB / 298.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 5.443e-05/0.006756, allocations: 139.5 kB / 329.3 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-06/0.00676, allocations: 0 / 329.3 MB, free: 3.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.774e-06/0.006768, allocations: 7 kB / 329.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.81e-07/0.006769, allocations: 0 / 329.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.00677, allocations: 0 / 329.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.006774, allocations: 3.984 kB / 329.3 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.139e-05/0.006815, allocations: 69.83 kB / 329.3 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.61e-07/0.006815, allocations: 0 / 329.3 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-07/0.006816, allocations: 4 kB / 329.3 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.91e-07/0.006816, allocations: 0 / 329.3 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.577e-06/0.00682, allocations: 0 / 329.3 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.41e-07/0.00682, allocations: 0 / 329.3 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.006821, allocations: 4 kB / 329.4 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.95e-05/0.00688, allocations: 116.4 kB / 329.5 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-06/0.006884, allocations: 352 / 329.5 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.006895, allocations: 4 kB / 329.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.907e-06/0.006899, allocations: 0 / 329.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.614e-06/0.006907, allocations: 0 / 329.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.006909, allocations: 0 / 329.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.581e-06/0.006914, allocations: 8.891 kB / 329.5 MB, free: 3.109 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.006914, allocations: 0 / 329.5 MB, free: 3.109 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002253/0.00714, allocations: 135.6 kB / 329.6 MB, free: 2.977 MB / 298.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.0005354/0.007675, allocations: 324.6 kB / 329.9 MB, free: 2.664 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.275e-05/0.007768, allocations: 119.7 kB / 330 MB, free: 2.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.007771, allocations: 4 kB / 330 MB, free: 2.516 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.092e-05/0.007802, allocations: 85.95 kB / 330.1 MB, free: 2.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.155e-05/0.007854, allocations: 10.12 kB / 330.1 MB, free: 2.402 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001369/0.007991, allocations: 109.4 kB / 330.2 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.565e-05/0.008016, allocations: 51.36 kB / 330.3 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.5e-06/0.008022, allocations: 0 / 330.3 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.874e-05/0.00805, allocations: 63.48 kB / 330.4 MB, free: 2.129 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.008051, allocations: 0 / 330.4 MB, free: 2.129 MB / 298.7 MB Notification: Performance of Templates: time 0.004835/0.01289, allocations: 3.929 MB / 334.3 MB, free: 14.21 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 -s gbode -gbm=radauIIA3 -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: 2.9494763878174126]