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.00195/0.00195, allocations: 88.31 kB / 20.95 MB, free: 3.48 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.002575/0.002575, allocations: 161.7 kB / 24.26 MB, free: 180 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.517/1.517, allocations: 177.1 MB / 204.6 MB, free: 5.59 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.3856/0.3856, allocations: 32.8 MB / 293.9 MB, free: 1.23 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 5.991e-06/5.991e-06, allocations: 4 kB / 375.2 MB, free: 5.004 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.347e-05/3.946e-05, allocations: 9.766 kB / 375.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002474/0.002514, allocations: 0.5048 MB / 375.8 MB, free: 4.488 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.005459/0.007972, allocations: 2.012 MB / 377.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.036e-05/0.007993, allocations: 0 / 377.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.008007, allocations: 0 / 377.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.544e-06/0.008015, allocations: 0 / 377.8 MB, free: 2.453 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.002438/0.01045, allocations: 0.5217 MB / 378.3 MB, free: 1.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.584e-05/0.01051, allocations: 4 kB / 378.3 MB, free: 1.926 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.002e-05/0.01055, allocations: 0 / 378.3 MB, free: 1.926 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.117e-05/0.01058, allocations: 0 / 378.3 MB, free: 1.926 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.621e-05/0.01061, allocations: 8 kB / 378.3 MB, free: 1.918 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.01062, allocations: 7.922 kB / 378.3 MB, free: 1.91 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.01242, allocations: 0.6391 MB / 379 MB, free: 1.27 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.738e-06/0.01243, allocations: 0 / 379 MB, free: 1.27 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.01246, allocations: 0 / 379 MB, free: 1.27 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001258/0.01371, allocations: 474.8 kB / 379.4 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.01372, allocations: 0 / 379.4 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.01372, allocations: 0 / 379.4 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.954e-06/0.01373, allocations: 0 / 379.4 MB, free: 0.8047 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.0007764/0.0145, allocations: 347.3 kB / 379.8 MB, free: 440 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.01455, allocations: 8.031 kB / 379.8 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.388e-05/0.01462, allocations: 4.938 kB / 379.8 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.01475, allocations: 101.8 kB / 379.9 MB, free: 300 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.01477, allocations: 4.375 kB / 379.9 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.007e-06/0.01478, allocations: 384 / 379.9 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001568/0.01493, allocations: 59.95 kB / 379.9 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.01495, allocations: 192 / 379.9 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.01496, allocations: 384 / 379.9 MB, free: 224 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.01496, allocations: 3.938 kB / 379.9 MB, free: 220 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.777e-05/0.01502, allocations: 33.64 kB / 380 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.01519, allocations: 97.33 kB / 380.1 MB, free: 52 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.0153, allocations: 44.31 kB / 380.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.074e-05/0.01536, allocations: 30.56 kB / 380.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.7e-05/0.01537, allocations: 4 kB / 380.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.68e-05/0.01546, allocations: 64.31 kB / 380.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.653e-06/0.01546, allocations: 0 / 380.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003449/0.01581, allocations: 122.7 kB / 380.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.708e-05/0.0159, allocations: 85.03 kB / 380.4 MB, free: 15.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.898e-05/0.01598, allocations: 93.8 kB / 380.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.01601, allocations: 29.7 kB / 380.5 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.156e-05/0.01607, allocations: 80.14 kB / 380.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.01609, allocations: 0 / 380.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.958e-05/0.01614, allocations: 13.72 kB / 380.6 MB, free: 15.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002225/0.01637, allocations: 315 kB / 380.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.633e-05/0.0164, allocations: 29.7 kB / 381 MB, free: 15.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.894e-05/0.01643, allocations: 25.7 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.573e-05/0.01653, allocations: 64.25 kB / 381 MB, free: 14.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.01653, allocations: 3.938 kB / 381 MB, free: 14.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001554/0.01669, allocations: 89.11 kB / 381.1 MB, free: 14.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.108e-05/0.01674, allocations: 35.58 kB / 381.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.01674, allocations: 0 / 381.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.01676, allocations: 0 / 381.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.01677, allocations: 0 / 381.2 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.01677, allocations: 8.031 kB / 381.2 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.262e-05/0.01681, allocations: 7.938 kB / 381.2 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.01681, allocations: 0 / 381.2 MB, free: 14.76 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.0001338/0.01695, allocations: 135.5 kB / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.01697, allocations: 4 kB / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.102e-05/0.01698, allocations: 3 kB / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.01698, allocations: 0 / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.01698, allocations: 0 / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.01699, allocations: 3.938 kB / 381.3 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.01712, allocations: 101.3 kB / 381.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.01712, allocations: 11.98 kB / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.91e-07/0.01712, allocations: 0 / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.01712, allocations: 0 / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.01713, allocations: 0 / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.01714, allocations: 7.938 kB / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.01714, allocations: 0 / 381.4 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001852/0.01732, allocations: 120.5 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.001e-05/0.01733, allocations: 4 kB / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.01735, allocations: 0 / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.314e-05/0.01736, allocations: 0 / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.01738, allocations: 0 / 381.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.555e-06/0.01739, allocations: 11.97 kB / 381.6 MB, free: 14.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.846e-05/0.01746, allocations: 79.22 kB / 381.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01746, allocations: 0 / 381.7 MB, free: 14.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007581/0.01821, allocations: 135.5 kB / 381.8 MB, free: 14.08 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.001291/0.0195, allocations: 328.6 kB / 382.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001902/0.01969, allocations: 118.7 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.0197, allocations: 4 kB / 382.2 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.377e-05/0.01978, allocations: 77.11 kB / 382.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002076/0.01999, allocations: 6.031 kB / 382.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003079/0.0203, allocations: 108.8 kB / 382.4 MB, free: 13.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.316e-05/0.02038, allocations: 59.34 kB / 382.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.71e-06/0.02039, allocations: 0 / 382.5 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.883e-05/0.02041, allocations: 8.5 kB / 382.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of SimCode: time 4.6e-07/0.02041, allocations: 0 / 382.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of Templates: time 0.009266/0.02967, allocations: 3.524 MB / 386 MB, free: 9.766 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 480] 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: 4.997993054916151]