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.0009534/0.0009534, allocations: 83.58 kB / 21.19 MB, free: 3.379 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.0009273/0.0009273, allocations: 161 kB / 24.56 MB, free: 12 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 0.9347/0.9347, allocations: 177.1 MB / 205 MB, free: 5.617 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.2813/0.2813, allocations: 34.25 MB / 295.7 MB, free: 0.6836 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 1.964e-06/1.964e-06, allocations: 0 / 378 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.947e-05/3.143e-05, allocations: 9.406 kB / 378 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.002094/0.002125, allocations: 0.5085 MB / 378.5 MB, free: 2.141 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003586/0.005711, allocations: 1.988 MB / 380.5 MB, free: 132 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.082e-05/0.005731, allocations: 0 / 380.5 MB, free: 132 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.472e-05/0.005756, allocations: 0 / 380.5 MB, free: 132 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 8.045e-06/0.005764, allocations: 0 / 380.5 MB, free: 132 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.002303/0.008067, allocations: 0.51 MB / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.224e-05/0.008129, allocations: 0 / 381 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.895e-05/0.008178, allocations: 3.984 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.339e-05/0.008212, allocations: 4 kB / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.364e-05/0.008235, allocations: 0 / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 8.977e-06/0.008244, allocations: 0 / 381 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.009554, allocations: 0.6705 MB / 381.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.277e-05/0.009567, allocations: 3.984 kB / 381.7 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.009596, allocations: 11.94 kB / 381.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009793/0.01058, allocations: 482.8 kB / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.01058, allocations: 0 / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01058, allocations: 0 / 382.2 MB, free: 14.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.01059, allocations: 0 / 382.2 MB, free: 14.45 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.0005718/0.01116, allocations: 445.3 kB / 382.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.0112, allocations: 12.03 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.697e-05/0.01125, allocations: 0.9375 kB / 382.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.416e-05/0.01132, allocations: 108.6 kB / 382.8 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.01134, allocations: 4.375 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.01135, allocations: 4.312 kB / 382.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.01146, allocations: 59.95 kB / 382.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.528e-06/0.01147, allocations: 4.172 kB / 382.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.01148, allocations: 384 / 382.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.01149, allocations: 3.938 kB / 382.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.827e-05/0.01152, allocations: 25.7 kB / 382.9 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001165/0.01164, allocations: 120.6 kB / 383 MB, free: 13.56 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.593e-05/0.01171, allocations: 48.77 kB / 383 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.741e-05/0.01173, allocations: 45.41 kB / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-06/0.01174, allocations: 0 / 383.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.01178, allocations: 59.09 kB / 383.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.243e-06/0.01178, allocations: 0 / 383.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002373/0.01202, allocations: 122.8 kB / 383.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.01207, allocations: 81.05 kB / 383.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.033e-05/0.01213, allocations: 142.2 kB / 383.5 MB, free: 12.97 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.01215, allocations: 25.7 kB / 383.5 MB, free: 12.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.0122, allocations: 131 kB / 383.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.534e-05/0.01222, allocations: 352 / 383.6 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.836e-05/0.01226, allocations: 19.38 kB / 383.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.0124, allocations: 496.1 kB / 384.1 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.482e-05/0.01243, allocations: 33.64 kB / 384.2 MB, free: 12.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.646e-05/0.01244, allocations: 25.7 kB / 384.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.668e-05/0.0125, allocations: 67.08 kB / 384.2 MB, free: 12.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.0125, allocations: 0 / 384.2 MB, free: 12.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.766e-05/0.01259, allocations: 89.06 kB / 384.3 MB, free: 12.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.01263, allocations: 39.98 kB / 384.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.01263, allocations: 3.984 kB / 384.4 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.01265, allocations: 7.938 kB / 384.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.849e-06/0.01265, allocations: 0 / 384.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.01266, allocations: 3.938 kB / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.816e-05/0.01268, allocations: 0 / 384.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.01269, allocations: 3.938 kB / 384.4 MB, free: 11.96 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 9.04e-05/0.01278, allocations: 182.3 kB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.095e-05/0.01279, allocations: 0 / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.1e-05/0.0128, allocations: 3 kB / 384.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.0128, allocations: 8 kB / 384.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.01281, allocations: 0 / 384.6 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.01281, allocations: 3.938 kB / 384.6 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.619e-05/0.01289, allocations: 112.6 kB / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.01289, allocations: 0 / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.052e-06/0.01289, allocations: 0 / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.01289, allocations: 4 kB / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.0129, allocations: 0 / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.0129, allocations: 0 / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.0129, allocations: 0 / 384.7 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.01303, allocations: 131.8 kB / 384.8 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.262e-06/0.01304, allocations: 8.031 kB / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.575e-05/0.01305, allocations: 0 / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.01306, allocations: 3.938 kB / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.284e-05/0.01308, allocations: 0 / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.01308, allocations: 0 / 384.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.892e-05/0.01312, allocations: 127.1 kB / 385 MB, free: 11.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01312, allocations: 0 / 385 MB, free: 11.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004858/0.0136, allocations: 131.6 kB / 385.1 MB, free: 11.18 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.0008995/0.0145, allocations: 349.4 kB / 385.4 MB, free: 10.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.01464, allocations: 122.5 kB / 385.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.01464, allocations: 0 / 385.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.64e-05/0.01469, allocations: 88.8 kB / 385.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.01483, allocations: 4.125 kB / 385.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002512/0.01508, allocations: 118.5 kB / 385.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.856e-05/0.01512, allocations: 55.3 kB / 385.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.364e-06/0.01513, allocations: 4 kB / 385.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.563e-05/0.01514, allocations: 8.5 kB / 385.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01514, allocations: 0 / 385.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of Templates: time 0.007291/0.02244, allocations: 4.128 MB / 390 MB, free: 6.207 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.153331857174635]