Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.002494/0.002494, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002867/0.002867, allocations: 169.3 kB / 24.28 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.633/1.633, allocations: 177.1 MB / 204.6 MB, free: 5.609 MB / 186.7 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.3855/0.3855, allocations: 32.8 MB / 293.9 MB, free: 1.203 MB / 266.7 MB " [Timeout remaining time 179] 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.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 375.2 MB, free: 5.012 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.76e-05/2.919e-05, allocations: 13.48 kB / 375.3 MB, free: 5 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001519/0.001548, allocations: 0.5048 MB / 375.8 MB, free: 4.492 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003384/0.004933, allocations: 2.031 MB / 377.8 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.324e-05/0.004946, allocations: 0 / 377.8 MB, free: 2.438 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.336e-05/0.004959, allocations: 11.94 kB / 377.8 MB, free: 2.426 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.669e-06/0.004964, allocations: 0 / 377.8 MB, free: 2.426 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001487/0.006451, allocations: 0.5217 MB / 378.3 MB, free: 1.902 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.552e-05/0.006496, allocations: 7.922 kB / 378.3 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.044e-05/0.006527, allocations: 4 kB / 378.3 MB, free: 1.891 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.647e-05/0.006553, allocations: 0 / 378.3 MB, free: 1.891 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.621e-05/0.006569, allocations: 0 / 378.3 MB, free: 1.891 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-06/0.006576, allocations: 0 / 378.3 MB, free: 1.891 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001154/0.00773, allocations: 0.647 MB / 379 MB, free: 1.242 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.346e-06/0.007739, allocations: 3.938 kB / 379 MB, free: 1.238 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 1.616e-05/0.007755, allocations: 4 kB / 379 MB, free: 1.234 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009947/0.00875, allocations: 458.8 kB / 379.4 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.008754, allocations: 4 kB / 379.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.008755, allocations: 0 / 379.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.008759, allocations: 0 / 379.4 MB, free: 0.7812 MB / 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.0005235/0.009283, allocations: 445.2 kB / 379.9 MB, free: 312 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.009324, allocations: 12.03 kB / 379.9 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.234e-05/0.009366, allocations: 8.922 kB / 379.9 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.374e-05/0.00946, allocations: 104.6 kB / 380 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.009471, allocations: 384 / 380 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-06/0.00948, allocations: 4.375 kB / 380 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.919e-05/0.009579, allocations: 59.91 kB / 380.1 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.009588, allocations: 192 / 380.1 MB, free: 84 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.009599, allocations: 8.359 kB / 380.1 MB, free: 76 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.009606, allocations: 3.938 kB / 380.1 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.355e-05/0.009639, allocations: 25.7 kB / 380.1 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.009793, allocations: 116.7 kB / 380.2 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.666e-05/0.009869, allocations: 48.77 kB / 380.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.82e-05/0.009908, allocations: 37.48 kB / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.445e-06/0.009916, allocations: 0 / 380.3 MB, free: 15.77 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.009973, allocations: 63.03 kB / 380.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.61e-07/0.009973, allocations: 4 kB / 380.4 MB, free: 15.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002244/0.0102, allocations: 122.8 kB / 380.5 MB, free: 15.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.291e-05/0.01026, allocations: 81.05 kB / 380.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.109e-05/0.01035, allocations: 142.2 kB / 380.7 MB, free: 15.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.01037, allocations: 25.7 kB / 380.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.39e-05/0.01043, allocations: 130.8 kB / 380.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.01045, allocations: 0 / 380.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.01049, allocations: 23.38 kB / 380.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002624/0.01075, allocations: 496.1 kB / 381.4 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.89e-05/0.01078, allocations: 29.7 kB / 381.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.901e-05/0.01081, allocations: 33.77 kB / 381.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.236e-05/0.01087, allocations: 63.09 kB / 381.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01087, allocations: 0 / 381.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001012/0.01098, allocations: 93.09 kB / 381.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.01101, allocations: 29.7 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.01101, allocations: 0 / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.01103, allocations: 4 kB / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.01103, allocations: 0 / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.01104, allocations: 3.938 kB / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.602e-05/0.01105, allocations: 3.953 kB / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-06/0.01106, allocations: 4.094 kB / 381.6 MB, free: 14.29 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.0001227/0.01118, allocations: 182.3 kB / 381.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.471e-05/0.0112, allocations: 7.922 kB / 381.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.398e-06/0.01121, allocations: 7 kB / 381.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.01121, allocations: 0 / 381.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.01121, allocations: 4 kB / 381.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01121, allocations: 3.938 kB / 381.8 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.185e-05/0.01131, allocations: 104.6 kB / 381.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.01131, allocations: 0 / 381.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.01131, allocations: 0 / 381.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.01131, allocations: 4 kB / 381.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.78e-06/0.01131, allocations: 4 kB / 381.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.01131, allocations: 0 / 381.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.01132, allocations: 4 kB / 381.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.01147, allocations: 131.8 kB / 382.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.773e-06/0.01148, allocations: 4 kB / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.01149, allocations: 3.984 kB / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.875e-06/0.0115, allocations: 0 / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.01151, allocations: 0 / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.01151, allocations: 0 / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.597e-05/0.01158, allocations: 135.1 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01158, allocations: 3.938 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003928/0.01197, allocations: 135.5 kB / 382.3 MB, free: 13.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.0008237/0.0128, allocations: 325 kB / 382.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001628/0.01296, allocations: 122.5 kB / 382.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.01296, allocations: 4 kB / 382.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.371e-05/0.01304, allocations: 92.78 kB / 382.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.01315, allocations: 1.875 kB / 382.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002341/0.01339, allocations: 114.5 kB / 383 MB, free: 12.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.675e-05/0.01344, allocations: 55.36 kB / 383 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.04e-06/0.01345, allocations: 0 / 383 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.252e-05/0.01346, allocations: 8.5 kB / 383.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01346, allocations: 0 / 383.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of Templates: time 0.008328/0.02179, allocations: 3.537 MB / 386.6 MB, free: 9.145 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.198315883986652]