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.00161/0.00161, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001804/0.001804, allocations: 168.9 kB / 24.99 MB, free: 8.801 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 1.153/1.153, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] 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.2863/0.2863, allocations: 34.27 MB / 296 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] 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 2.134e-06/2.134e-06, allocations: 0 / 378 MB, free: 2.961 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.712e-05, allocations: 5.969 kB / 378 MB, free: 2.957 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001163/0.00119, allocations: 0.5086 MB / 378.5 MB, free: 2.445 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.003252, allocations: 1.984 MB / 380.5 MB, free: 448 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.22e-05/0.003274, allocations: 4 kB / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.003289, allocations: 0 / 380.5 MB, free: 444 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.961e-06/0.003295, allocations: 0 / 380.5 MB, free: 444 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.001073/0.004368, allocations: 0.5022 MB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 4.495e-05/0.004413, allocations: 4 kB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.035e-05/0.004443, allocations: 3.984 kB / 381 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.252e-05/0.004466, allocations: 0 / 381 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.596e-05/0.004482, allocations: 0 / 381 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.644e-06/0.004489, allocations: 0 / 381 MB, free: 15.92 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000663/0.005152, allocations: 0.6744 MB / 381.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-06/0.005159, allocations: 3.984 kB / 381.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 1.719e-05/0.005177, allocations: 4 kB / 381.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004434/0.00562, allocations: 486.7 kB / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.005622, allocations: 0 / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.005624, allocations: 4 kB / 382.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.005628, allocations: 0 / 382.2 MB, free: 14.76 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.0003337/0.005962, allocations: 437.4 kB / 382.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.005999, allocations: 12.03 kB / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.694e-05/0.006036, allocations: 0.9375 kB / 382.6 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.571e-05/0.006102, allocations: 116.5 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.006113, allocations: 4.375 kB / 382.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.006121, allocations: 4.312 kB / 382.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.902e-05/0.00621, allocations: 59.95 kB / 382.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.006216, allocations: 192 / 382.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-06/0.006223, allocations: 4.375 kB / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.006231, allocations: 3.938 kB / 382.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.974e-05/0.006251, allocations: 25.7 kB / 382.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.071e-05/0.006342, allocations: 108.6 kB / 382.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.803e-05/0.00639, allocations: 60.69 kB / 383 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.77e-05/0.006407, allocations: 37.48 kB / 383 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-06/0.006411, allocations: 0 / 383 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.006443, allocations: 59.09 kB / 383.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.844e-06/0.006445, allocations: 3.984 kB / 383.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.00659, allocations: 122.8 kB / 383.2 MB, free: 13.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.006625, allocations: 85.17 kB / 383.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.878e-05/0.006664, allocations: 142.2 kB / 383.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.006672, allocations: 25.7 kB / 383.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.661e-05/0.006699, allocations: 130.8 kB / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.408e-05/0.006713, allocations: 352 / 383.6 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.3e-05/0.006736, allocations: 19.38 kB / 383.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.006839, allocations: 492.1 kB / 384.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.564e-05/0.006854, allocations: 29.7 kB / 384.1 MB, free: 12.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.405e-05/0.006868, allocations: 33.69 kB / 384.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.357e-05/0.006912, allocations: 63.16 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.006913, allocations: 4 kB / 384.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.613e-05/0.006969, allocations: 89.06 kB / 384.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.535e-05/0.006995, allocations: 33.69 kB / 384.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.006998, allocations: 0 / 384.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.007009, allocations: 4 kB / 384.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.665e-06/0.007012, allocations: 7.938 kB / 384.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.007017, allocations: 3.938 kB / 384.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.628e-06/0.007027, allocations: 0 / 384.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.007032, allocations: 0 / 384.4 MB, free: 12.28 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 6.653e-05/0.007098, allocations: 190.3 kB / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-06/0.007103, allocations: 0 / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.913e-06/0.00711, allocations: 3 kB / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.007111, allocations: 0 / 384.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.007115, allocations: 7.938 kB / 384.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.00712, allocations: 7.922 kB / 384.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.056e-05/0.00717, allocations: 104.6 kB / 384.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.007171, allocations: 0 / 384.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.007171, allocations: 0 / 384.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.12e-07/0.007172, allocations: 0 / 384.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.007178, allocations: 4 kB / 384.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.007179, allocations: 4 kB / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.00718, allocations: 0 / 384.7 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.661e-05/0.007257, allocations: 135.7 kB / 384.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.106e-06/0.00726, allocations: 0 / 384.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.338e-05/0.007273, allocations: 4 kB / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.739e-06/0.007278, allocations: 0 / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.007288, allocations: 0 / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.007291, allocations: 0 / 384.8 MB, free: 11.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.856e-05/0.007319, allocations: 127.1 kB / 384.9 MB, free: 11.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007319, allocations: 4 kB / 384.9 MB, free: 11.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002454/0.007565, allocations: 127.6 kB / 385.1 MB, free: 11.49 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.0005344/0.008099, allocations: 353 kB / 385.4 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.192e-05/0.008191, allocations: 122.5 kB / 385.5 MB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.008193, allocations: 3.938 kB / 385.5 MB, free: 10.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.74e-05/0.00822, allocations: 84.8 kB / 385.6 MB, free: 10.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.381e-05/0.008304, allocations: 7.984 kB / 385.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001569/0.008461, allocations: 118.4 kB / 385.7 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.699e-05/0.008488, allocations: 51.36 kB / 385.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.769e-06/0.008493, allocations: 0 / 385.8 MB, free: 10.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.116e-05/0.008504, allocations: 12.5 kB / 385.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.008504, allocations: 0 / 385.8 MB, free: 10.64 MB / 362.7 MB Notification: Performance of Templates: time 0.004368/0.01287, allocations: 3.536 MB / 389.3 MB, free: 7.109 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3453958409372717]