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.0009353/0.0009353, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001048/0.001048, allocations: 161 kB / 24.56 MB, free: 16 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.9897/0.9897, allocations: 177.1 MB / 205 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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.2779/0.2779, allocations: 32.8 MB / 294.3 MB, free: 1.199 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 376 MB, free: 4.672 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.064e-05, allocations: 6.25 kB / 376 MB, free: 4.664 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestSpecial): time 0.001203/0.001224, allocations: 0.5085 MB / 376.5 MB, free: 4.152 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002498/0.003721, allocations: 1.981 MB / 378.5 MB, free: 2.148 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.641e-05/0.003737, allocations: 4 kB / 378.5 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.943e-05/0.003757, allocations: 0 / 378.5 MB, free: 2.145 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.51e-06/0.003762, allocations: 0 / 378.5 MB, free: 2.145 MB / 346.7 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.001227/0.00499, allocations: 0.5062 MB / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.426e-05/0.005034, allocations: 0 / 379 MB, free: 1.637 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.435e-05/0.005068, allocations: 7.922 kB / 379 MB, free: 1.629 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.434e-05/0.005093, allocations: 4 kB / 379 MB, free: 1.625 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.635e-05/0.005109, allocations: 0 / 379 MB, free: 1.625 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.344e-06/0.005116, allocations: 0 / 379 MB, free: 1.625 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008884/0.006005, allocations: 0.6783 MB / 379.7 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.206e-06/0.006013, allocations: 0 / 379.7 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.079e-05/0.006034, allocations: 3.984 kB / 379.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000596/0.00663, allocations: 486.7 kB / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.006632, allocations: 0 / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.006633, allocations: 0 / 380.2 MB, free: 476 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.006637, allocations: 4 kB / 380.2 MB, free: 472 kB / 346.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.000406/0.007043, allocations: 441.3 kB / 380.6 MB, free: 15.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.007077, allocations: 12.03 kB / 380.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.47e-05/0.007112, allocations: 0.9375 kB / 380.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.097e-05/0.007173, allocations: 112.6 kB / 380.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.007185, allocations: 4.375 kB / 380.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.474e-06/0.007192, allocations: 384 / 380.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.768e-05/0.00728, allocations: 63.95 kB / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.00729, allocations: 192 / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.794e-06/0.007298, allocations: 384 / 380.8 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.007307, allocations: 7.938 kB / 380.8 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.903e-05/0.007326, allocations: 29.64 kB / 380.8 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.849e-05/0.007424, allocations: 108.6 kB / 381 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.865e-05/0.007473, allocations: 48.77 kB / 381 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.321e-05/0.007496, allocations: 41.47 kB / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-06/0.0075, allocations: 0 / 381 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.895e-05/0.007539, allocations: 63.09 kB / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.00754, allocations: 0 / 381.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001641/0.007704, allocations: 126.7 kB / 381.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.007745, allocations: 81.05 kB / 381.3 MB, free: 15.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.38e-05/0.007789, allocations: 146.4 kB / 381.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.007799, allocations: 25.7 kB / 381.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.942e-05/0.007828, allocations: 126.9 kB / 381.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.374e-05/0.007842, allocations: 352 / 381.6 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.00787, allocations: 27.31 kB / 381.6 MB, free: 14.79 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.007987, allocations: 492.1 kB / 382.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.945e-05/0.008007, allocations: 29.7 kB / 382.1 MB, free: 14.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.283e-05/0.008019, allocations: 29.69 kB / 382.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.387e-05/0.008063, allocations: 63.09 kB / 382.2 MB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.008065, allocations: 4 kB / 382.2 MB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.82e-05/0.008133, allocations: 97.06 kB / 382.3 MB, free: 14.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.00816, allocations: 33.69 kB / 382.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.008164, allocations: 0 / 382.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.008177, allocations: 4 kB / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.438e-06/0.008181, allocations: 0 / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.008187, allocations: 3.938 kB / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.153e-05/0.008199, allocations: 0 / 382.4 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.008205, allocations: 0 / 382.4 MB, free: 13.98 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 7.008e-05/0.008275, allocations: 182.3 kB / 382.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-06/0.008281, allocations: 4.031 kB / 382.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.216e-06/0.008289, allocations: 3 kB / 382.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.00829, allocations: 0 / 382.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.008294, allocations: 4 kB / 382.6 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.008297, allocations: 3.938 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.812e-05/0.008355, allocations: 112.6 kB / 382.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.008355, allocations: 0 / 382.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.008356, allocations: 0 / 382.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.71e-07/0.008357, allocations: 0 / 382.7 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-06/0.008362, allocations: 4 kB / 382.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.008363, allocations: 3.938 kB / 382.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008364, allocations: 4 kB / 382.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.373e-05/0.008448, allocations: 127.8 kB / 382.8 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-06/0.008453, allocations: 8 kB / 382.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.227e-05/0.008465, allocations: 4 kB / 382.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.061e-06/0.008471, allocations: 0 / 382.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.008482, allocations: 0 / 382.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-06/0.008484, allocations: 0 / 382.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.237e-05/0.008516, allocations: 127.1 kB / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008516, allocations: 0 / 382.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003634/0.00888, allocations: 127.6 kB / 383.1 MB, free: 13.2 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.0006529/0.009533, allocations: 346 kB / 383.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.009635, allocations: 130.4 kB / 383.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.009637, allocations: 4.062 kB / 383.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.497e-05/0.009672, allocations: 88.8 kB / 383.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001151/0.009787, allocations: 3.984 kB / 383.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001714/0.009958, allocations: 110.5 kB / 383.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.013e-05/0.009988, allocations: 51.36 kB / 383.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.11e-06/0.009993, allocations: 0 / 383.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.178e-05/0.01001, allocations: 12.5 kB / 383.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of SimCode: time 6.12e-07/0.01001, allocations: 0 / 383.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of Templates: time 0.006623/0.01663, allocations: 4.139 MB / 387.9 MB, free: 8.227 MB / 362.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestSpecial_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.30666221678257]