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.001414/0.001414, allocations: 107.1 kB / 20.44 MB, free: 1.172 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.001583/0.001583, allocations: 206.9 kB / 23.73 MB, free: 4.375 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.481/1.481, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2446/0.2446, allocations: 46.96 MB / 360.9 MB, free: 4.105 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.00206/0.00206, allocations: 71.89 kB / 0.4966 GB, free: 7.195 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3841, allocations: 66.02 MB / 0.5611 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001852/0.386, allocations: 0.5087 MB / 0.5616 GB, free: 3.629 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.3893, allocations: 1.922 MB / 0.5634 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.873e-05/0.3894, allocations: 0 / 0.5634 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.558e-05/0.3894, allocations: 0 / 0.5634 GB, free: 1.688 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.574e-06/0.3894, allocations: 0 / 0.5634 GB, free: 1.688 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.00158/0.391, allocations: 0.5063 MB / 0.5639 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.34e-05/0.391, allocations: 0 / 0.5639 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.355e-05/0.3911, allocations: 4 kB / 0.5639 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.3911, allocations: 3.984 kB / 0.5639 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.183e-05/0.3911, allocations: 7.938 kB / 0.5639 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-06/0.3911, allocations: 0 / 0.5639 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.3922, allocations: 0.7136 MB / 0.5646 GB, free: 464 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-06/0.3922, allocations: 0 / 0.5646 GB, free: 464 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.773e-05/0.3922, allocations: 0 / 0.5646 GB, free: 464 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005722/0.3928, allocations: 393.5 kB / 0.565 GB, free: 76 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.3928, allocations: 0 / 0.565 GB, free: 76 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.3928, allocations: 0 / 0.565 GB, free: 76 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.3928, allocations: 0 / 0.565 GB, free: 76 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.0005188/0.3933, allocations: 339.4 kB / 0.5653 GB, free: 15.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3934, allocations: 8.031 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.943e-05/0.3934, allocations: 4.938 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.681e-05/0.3935, allocations: 102.5 kB / 0.5655 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.3935, allocations: 384 / 0.5655 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.3935, allocations: 384 / 0.5655 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001252/0.3937, allocations: 71.64 kB / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.3937, allocations: 0 / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.3937, allocations: 0 / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3937, allocations: 0 / 0.5655 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.364e-05/0.3937, allocations: 29.7 kB / 0.5656 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001155/0.3938, allocations: 97.33 kB / 0.5656 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.945e-05/0.3939, allocations: 52.28 kB / 0.5657 GB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.142e-05/0.3939, allocations: 30.56 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.394, allocations: 0 / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.394, allocations: 64.27 kB / 0.5658 GB, free: 15.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.394, allocations: 4 kB / 0.5658 GB, free: 15.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002248/0.3942, allocations: 122.7 kB / 0.5659 GB, free: 15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.3943, allocations: 77.11 kB / 0.566 GB, free: 14.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.361e-05/0.3944, allocations: 97.75 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.3944, allocations: 25.7 kB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.766e-05/0.3944, allocations: 84.14 kB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.3945, allocations: 0 / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.3945, allocations: 17.66 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3946, allocations: 314.8 kB / 0.5665 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.534e-05/0.3947, allocations: 25.7 kB / 0.5665 GB, free: 14.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.057e-05/0.3947, allocations: 33.81 kB / 0.5666 GB, free: 14.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.083e-05/0.3947, allocations: 64.2 kB / 0.5666 GB, free: 14.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3947, allocations: 0 / 0.5666 GB, free: 14.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.804e-05/0.3948, allocations: 89.11 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/0.3949, allocations: 37.69 kB / 0.5667 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.3949, allocations: 0 / 0.5667 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3949, allocations: 3.938 kB / 0.5667 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.3949, allocations: 0 / 0.5667 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3949, allocations: 4 kB / 0.5667 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.382e-05/0.3949, allocations: 4.094 kB / 0.5667 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.3949, allocations: 0 / 0.5667 GB, free: 14.03 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 9.802e-05/0.395, allocations: 135.5 kB / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.294e-06/0.395, allocations: 0 / 0.5669 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.372e-05/0.395, allocations: 10.94 kB / 0.5669 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.395, allocations: 4 kB / 0.5669 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.395, allocations: 0 / 0.5669 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.3951, allocations: 3.938 kB / 0.5669 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.515e-05/0.3951, allocations: 97.31 kB / 0.567 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3951, allocations: 0 / 0.567 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3951, allocations: 0 / 0.567 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3951, allocations: 8 kB / 0.567 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.3951, allocations: 0 / 0.567 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3951, allocations: 3.938 kB / 0.567 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3951, allocations: 0 / 0.567 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.3953, allocations: 116.5 kB / 0.5671 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.967e-06/0.3953, allocations: 0 / 0.5671 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.3953, allocations: 4 kB / 0.5671 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.085e-05/0.3953, allocations: 3.938 kB / 0.5671 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.506e-05/0.3953, allocations: 0 / 0.5671 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.3953, allocations: 0 / 0.5671 GB, free: 13.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.407e-05/0.3953, allocations: 79.31 kB / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3953, allocations: 0 / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004111/0.3958, allocations: 135.6 kB / 0.5673 GB, free: 13.36 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.0007901/0.3966, allocations: 326.9 kB / 0.5676 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001376/0.3967, allocations: 114.8 kB / 0.5677 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3967, allocations: 0 / 0.5677 GB, free: 12.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.48e-05/0.3967, allocations: 85.09 kB / 0.5678 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001188/0.3969, allocations: 0 / 0.5678 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002411/0.3971, allocations: 114.7 kB / 0.5679 GB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.206e-05/0.3972, allocations: 59.34 kB / 0.568 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.42e-06/0.3972, allocations: 0 / 0.568 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.439e-05/0.3972, allocations: 7.562 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3972, allocations: 4 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of Templates: time 0.007744/0.4049, allocations: 3.524 MB / 0.5714 GB, free: 9.051 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.424598868004978]