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.001867/0.001867, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002372/0.002372, allocations: 215.6 kB / 24.48 MB, free: 3.84 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.574/1.574, allocations: 230.6 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.2227/0.2227, allocations: 44.94 MB / 359.6 MB, free: 6.066 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0024/0.0024, allocations: 71.89 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3967/0.3991, allocations: 65.48 MB / 0.5582 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001881/0.401, allocations: 0.4931 MB / 0.5587 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003402/0.4044, allocations: 1.93 MB / 0.5606 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.701e-05/0.4044, allocations: 0 / 0.5606 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.4044, allocations: 0 / 0.5606 GB, free: 5.043 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.221e-06/0.4044, allocations: 0 / 0.5606 GB, free: 5.043 MB / 398.1 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.001621/0.406, allocations: 0.4985 MB / 0.561 GB, free: 4.547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.049e-05/0.4061, allocations: 7.984 kB / 0.561 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.221e-05/0.4061, allocations: 0 / 0.561 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.927e-05/0.4062, allocations: 0 / 0.561 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.112e-05/0.4062, allocations: 0 / 0.561 GB, free: 4.539 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.625e-06/0.4062, allocations: 4 kB / 0.5611 GB, free: 4.535 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001202/0.4074, allocations: 0.6667 MB / 0.5617 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.117e-06/0.4074, allocations: 0 / 0.5617 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.4074, allocations: 8 kB / 0.5617 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006218/0.4081, allocations: 389.4 kB / 0.5621 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.4081, allocations: 0 / 0.5621 GB, free: 3.484 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4081, allocations: 0 / 0.5621 GB, free: 3.484 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.4081, allocations: 0 / 0.5621 GB, free: 3.484 MB / 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.0005078/0.4086, allocations: 339.4 kB / 0.5624 GB, free: 3.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.4086, allocations: 12.03 kB / 0.5624 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.024e-05/0.4087, allocations: 0.9375 kB / 0.5624 GB, free: 3.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.4088, allocations: 102.5 kB / 0.5625 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.4088, allocations: 384 / 0.5625 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.127e-06/0.4088, allocations: 4.375 kB / 0.5625 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.4089, allocations: 63.7 kB / 0.5626 GB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.4089, allocations: 4 kB / 0.5626 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.738e-06/0.4089, allocations: 0 / 0.5626 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.4089, allocations: 0 / 0.5626 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.676e-05/0.409, allocations: 29.64 kB / 0.5626 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001439/0.4091, allocations: 101.3 kB / 0.5627 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.97e-05/0.4092, allocations: 40.28 kB / 0.5628 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.066e-05/0.4092, allocations: 38.66 kB / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.171e-05/0.4092, allocations: 3.984 kB / 0.5628 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.565e-05/0.4093, allocations: 56.27 kB / 0.5628 GB, free: 2.559 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.4093, allocations: 0 / 0.5628 GB, free: 2.559 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002352/0.4095, allocations: 122.7 kB / 0.563 GB, free: 2.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.4096, allocations: 85.09 kB / 0.563 GB, free: 2.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.652e-05/0.4097, allocations: 101.8 kB / 0.5631 GB, free: 2.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.4097, allocations: 25.7 kB / 0.5632 GB, free: 2.172 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.4098, allocations: 84.27 kB / 0.5632 GB, free: 2.086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.4098, allocations: 0 / 0.5632 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.4098, allocations: 13.72 kB / 0.5633 GB, free: 2.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.41, allocations: 310.8 kB / 0.5636 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.372e-05/0.41, allocations: 29.64 kB / 0.5636 GB, free: 1.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.313e-05/0.41, allocations: 29.7 kB / 0.5636 GB, free: 1.684 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.993e-05/0.4101, allocations: 68.25 kB / 0.5637 GB, free: 1.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4101, allocations: 0 / 0.5637 GB, free: 1.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.688e-05/0.4102, allocations: 89.05 kB / 0.5638 GB, free: 1.496 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.4103, allocations: 33.8 kB / 0.5638 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.4103, allocations: 0 / 0.5638 GB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.4103, allocations: 3.938 kB / 0.5638 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.4103, allocations: 0 / 0.5638 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.4103, allocations: 3.984 kB / 0.5638 GB, free: 1.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.669e-05/0.4103, allocations: 4 kB / 0.5638 GB, free: 1.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-06/0.4103, allocations: 0 / 0.5638 GB, free: 1.445 MB / 398.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.0001173/0.4104, allocations: 139.5 kB / 0.5639 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-06/0.4104, allocations: 0 / 0.5639 GB, free: 1.293 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.336e-05/0.4105, allocations: 6.938 kB / 0.5639 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.4105, allocations: 3.984 kB / 0.5639 GB, free: 1.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.4105, allocations: 4 kB / 0.564 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.983e-06/0.4105, allocations: 0 / 0.564 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.257e-05/0.4106, allocations: 105.3 kB / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.52e-07/0.4106, allocations: 0 / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4106, allocations: 0 / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.52e-07/0.4106, allocations: 0 / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.4106, allocations: 0 / 0.5641 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.591e-06/0.4106, allocations: 7.922 kB / 0.5641 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.4106, allocations: 0 / 0.5641 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.4107, allocations: 124.5 kB / 0.5642 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.428e-06/0.4107, allocations: 4.031 kB / 0.5642 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.4107, allocations: 0 / 0.5642 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.048e-05/0.4107, allocations: 3.938 kB / 0.5642 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.248e-05/0.4107, allocations: 0 / 0.5642 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.4107, allocations: 4 kB / 0.5642 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.504e-05/0.4108, allocations: 75.28 kB / 0.5643 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4108, allocations: 0 / 0.5643 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004454/0.4112, allocations: 135.6 kB / 0.5644 GB, free: 0.7656 MB / 398.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.0008068/0.412, allocations: 320 kB / 0.5647 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001391/0.4122, allocations: 110.8 kB / 0.5648 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4122, allocations: 0 / 0.5648 GB, free: 324 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.78e-05/0.4122, allocations: 89.03 kB / 0.5649 GB, free: 216 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.4124, allocations: 8.125 kB / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002508/0.4126, allocations: 140.4 kB / 0.565 GB, free: 28 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.779e-05/0.4127, allocations: 51.36 kB / 0.5651 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.849e-05/0.4127, allocations: 11.44 kB / 0.5651 GB, free: 15.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4127, allocations: 0 / 0.5651 GB, free: 15.95 MB / 414.1 MB Notification: Performance of Templates: time 0.007101/0.4198, allocations: 3.409 MB / 0.5684 GB, free: 12.53 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestSpecial/TestSpecial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 9.138894584029913]