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.002677/0.002677, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002894/0.002894, allocations: 165.6 kB / 24.27 MB, free: 152 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.609/1.609, allocations: 177.1 MB / 204.6 MB, free: 5.594 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.3835/0.3835, allocations: 34.26 MB / 295.3 MB, free: 0.668 MB / 266.7 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 1.983e-06/1.983e-06, allocations: 0 / 377.3 MB, free: 2.969 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.17e-05/3.368e-05, allocations: 6.25 kB / 377.3 MB, free: 2.961 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001678/0.001711, allocations: 0.5039 MB / 377.8 MB, free: 2.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003659/0.00537, allocations: 1.965 MB / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.048e-05/0.005391, allocations: 0 / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.582e-05/0.005407, allocations: 0 / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.634e-06/0.005414, allocations: 4 kB / 379.8 MB, free: 476 kB / 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.001687/0.007102, allocations: 0.5023 MB / 380.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 5.095e-05/0.007153, allocations: 0 / 380.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.595e-05/0.007188, allocations: 3.984 kB / 380.3 MB, free: 15.96 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.229e-05/0.007231, allocations: 4 kB / 380.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.225e-05/0.007253, allocations: 0 / 380.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.897e-06/0.007262, allocations: 0 / 380.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.008726, allocations: 0.6743 MB / 380.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.745e-06/0.008733, allocations: 4 kB / 380.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.008756, allocations: 3.984 kB / 380.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00075/0.009506, allocations: 486.7 kB / 381.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.00951, allocations: 0 / 381.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.009511, allocations: 0 / 381.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.009516, allocations: 0 / 381.4 MB, free: 14.79 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.0005256/0.01004, allocations: 441.4 kB / 381.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.01008, allocations: 8.031 kB / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.01012, allocations: 4.938 kB / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/0.01023, allocations: 112.6 kB / 382 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.01024, allocations: 384 / 382 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.232e-06/0.01024, allocations: 384 / 382 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.01035, allocations: 59.95 kB / 382 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.01036, allocations: 192 / 382 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-06/0.01037, allocations: 4.312 kB / 382 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.01038, allocations: 3.938 kB / 382 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.869e-05/0.01042, allocations: 37.7 kB / 382.1 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.01055, allocations: 104.6 kB / 382.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.561e-05/0.01064, allocations: 60.72 kB / 382.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.6e-05/0.01068, allocations: 33.39 kB / 382.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.01069, allocations: 8.047 kB / 382.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.121e-05/0.01075, allocations: 63.09 kB / 382.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.01075, allocations: 0 / 382.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002205/0.01097, allocations: 118.8 kB / 382.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.521e-05/0.01105, allocations: 88.98 kB / 382.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.01115, allocations: 142.2 kB / 382.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.01117, allocations: 29.83 kB / 382.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/0.01124, allocations: 126.9 kB / 382.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.052e-05/0.01126, allocations: 7.938 kB / 382.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.01129, allocations: 19.38 kB / 382.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002589/0.01155, allocations: 492.1 kB / 383.3 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.822e-05/0.01158, allocations: 25.7 kB / 383.4 MB, free: 12.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.848e-05/0.01161, allocations: 33.69 kB / 383.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.139e-05/0.01167, allocations: 67.09 kB / 383.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.01167, allocations: 0 / 383.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001002/0.01177, allocations: 89.17 kB / 383.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.885e-05/0.01181, allocations: 35.88 kB / 383.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.01182, allocations: 3.938 kB / 383.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.666e-05/0.01183, allocations: 4 kB / 383.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.01183, allocations: 0 / 383.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.01184, allocations: 3.938 kB / 383.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.454e-05/0.01186, allocations: 0 / 383.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.01186, allocations: 0 / 383.6 MB, free: 12.31 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.0001427/0.012, allocations: 186.3 kB / 383.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.079e-05/0.01202, allocations: 3.953 kB / 383.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.364e-06/0.01202, allocations: 7.031 kB / 383.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.01202, allocations: 0 / 383.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01203, allocations: 4 kB / 383.8 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.01203, allocations: 7.922 kB / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.574e-05/0.01213, allocations: 104.6 kB / 383.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.01213, allocations: 3.938 kB / 383.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-06/0.01214, allocations: 4 kB / 383.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.01214, allocations: 0 / 383.9 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.01215, allocations: 4 kB / 383.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.01215, allocations: 0 / 383.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.01215, allocations: 3.984 kB / 383.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.0123, allocations: 139.7 kB / 384.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-06/0.01231, allocations: 4 kB / 384.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.051e-05/0.01232, allocations: 0 / 384.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.704e-06/0.01233, allocations: 0 / 384.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.369e-05/0.01234, allocations: 0 / 384.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.01234, allocations: 0 / 384.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.614e-05/0.01241, allocations: 127.1 kB / 384.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01241, allocations: 0 / 384.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004118/0.01282, allocations: 135.6 kB / 384.3 MB, free: 11.5 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.0008666/0.01369, allocations: 329.3 kB / 384.6 MB, free: 11.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001631/0.01385, allocations: 126.5 kB / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.01385, allocations: 0 / 384.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.161e-05/0.01393, allocations: 92.86 kB / 384.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.01405, allocations: 7.922 kB / 384.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002259/0.01428, allocations: 122.4 kB / 385 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.589e-05/0.01433, allocations: 55.36 kB / 385 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.069e-06/0.01434, allocations: 0 / 385 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.521e-05/0.01435, allocations: 12.5 kB / 385.1 MB, free: 10.67 MB / 362.7 MB Notification: Performance of SimCode: time 4.21e-07/0.01435, allocations: 0 / 385.1 MB, free: 10.67 MB / 362.7 MB Notification: Performance of Templates: time 0.008721/0.02307, allocations: 3.522 MB / 388.6 MB, free: 7.141 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] 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.329702557995915]