Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.002024/0.002024, allocations: 92.97 kB / 20.21 MB, free: 4.207 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.002244/0.002244, allocations: 169.2 kB / 23.53 MB, free: 0.8945 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 158.6 MB / 185.3 MB, free: 2.891 MB / 170.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2304/0.2304, allocations: 32.38 MB / 270 MB, free: 14.75 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Math.Random.TestDistributions") translateModel(ModelicaTest.Math.Random.TestDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.568e-06/4.568e-06, allocations: 3.984 kB / 346.9 MB, free: 9.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.418e-05/3.875e-05, allocations: 10.25 kB / 346.9 MB, free: 9.789 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00219/0.002229, allocations: 0.5121 MB / 347.5 MB, free: 9.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003595/0.005823, allocations: 2.005 MB / 349.5 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.95e-05/0.005853, allocations: 0 / 349.5 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.48e-05/0.005868, allocations: 0 / 349.5 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.045e-06/0.005876, allocations: 4 kB / 349.5 MB, free: 7.246 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.007857, allocations: 0.5179 MB / 350 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.994e-05/0.007917, allocations: 4 kB / 350 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.007962, allocations: 4 kB / 350 MB, free: 6.719 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.705e-05/0.007999, allocations: 0 / 350 MB, free: 6.719 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.267e-05/0.008022, allocations: 0 / 350 MB, free: 6.719 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.008032, allocations: 3.938 kB / 350 MB, free: 6.715 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.009285, allocations: 0.6353 MB / 350.6 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.2e-05/0.009297, allocations: 0 / 350.6 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.718e-05/0.009324, allocations: 3.938 kB / 350.6 MB, free: 6.074 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008098/0.01013, allocations: 462.8 kB / 351.1 MB, free: 5.621 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.01014, allocations: 0 / 351.1 MB, free: 5.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01014, allocations: 4 kB / 351.1 MB, free: 5.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.89e-06/0.01014, allocations: 0 / 351.1 MB, free: 5.617 MB / 282.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.0004164/0.01056, allocations: 437.3 kB / 351.5 MB, free: 5.148 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.01061, allocations: 8.031 kB / 351.5 MB, free: 5.141 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5e-05/0.01066, allocations: 8.938 kB / 351.5 MB, free: 5.133 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.548e-05/0.01073, allocations: 108.6 kB / 351.6 MB, free: 5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.01074, allocations: 4.375 kB / 351.6 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.01075, allocations: 384 / 351.6 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.993e-05/0.01085, allocations: 59.95 kB / 351.7 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.01086, allocations: 192 / 351.7 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.658e-06/0.01087, allocations: 384 / 351.7 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.01088, allocations: 3.938 kB / 351.7 MB, free: 4.922 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.713e-05/0.01091, allocations: 33.64 kB / 351.7 MB, free: 4.883 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001048/0.01101, allocations: 104.6 kB / 351.8 MB, free: 4.746 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.664e-05/0.01108, allocations: 56.8 kB / 351.9 MB, free: 4.672 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.772e-05/0.01111, allocations: 37.39 kB / 351.9 MB, free: 4.625 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.01112, allocations: 4.062 kB / 351.9 MB, free: 4.621 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/0.01116, allocations: 63.08 kB / 352 MB, free: 4.543 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 1.422e-06/0.01116, allocations: 0 / 352 MB, free: 4.543 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002335/0.0114, allocations: 118.8 kB / 352.1 MB, free: 4.402 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.484e-05/0.01144, allocations: 89.03 kB / 352.2 MB, free: 4.297 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.431e-05/0.01148, allocations: 142.2 kB / 352.3 MB, free: 4.145 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.01149, allocations: 25.7 kB / 352.4 MB, free: 4.113 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.357e-05/0.01152, allocations: 126.9 kB / 352.5 MB, free: 3.984 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.01155, allocations: 3.938 kB / 352.5 MB, free: 3.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.292e-05/0.01159, allocations: 23.5 kB / 352.5 MB, free: 3.949 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.01169, allocations: 492.1 kB / 353 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.032e-05/0.01171, allocations: 29.7 kB / 353 MB, free: 3.422 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.344e-05/0.01172, allocations: 29.7 kB / 353.1 MB, free: 3.387 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.028e-05/0.01176, allocations: 67.08 kB / 353.1 MB, free: 3.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.01176, allocations: 3.938 kB / 353.1 MB, free: 3.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.674e-05/0.01183, allocations: 97 kB / 353.2 MB, free: 3.188 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.01186, allocations: 29.7 kB / 353.3 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.01187, allocations: 0 / 353.3 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.01188, allocations: 4.094 kB / 353.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.222e-06/0.01188, allocations: 0 / 353.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.01189, allocations: 11.92 kB / 353.3 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.744e-05/0.01191, allocations: 0 / 353.3 MB, free: 3.137 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.01191, allocations: 0 / 353.3 MB, free: 3.137 MB / 282.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 5.926e-05/0.01197, allocations: 182.3 kB / 353.4 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.01198, allocations: 0 / 353.4 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.133e-05/0.012, allocations: 3 kB / 353.4 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.012, allocations: 0 / 353.4 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.012, allocations: 0 / 353.4 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.012, allocations: 7.938 kB / 353.5 MB, free: 2.93 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.069e-05/0.01205, allocations: 112.6 kB / 353.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.01206, allocations: 0 / 353.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.91e-07/0.01206, allocations: 0 / 353.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.01206, allocations: 0 / 353.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.01206, allocations: 0 / 353.6 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.01207, allocations: 4 kB / 353.6 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01207, allocations: 3.938 kB / 353.6 MB, free: 2.777 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.871e-05/0.01216, allocations: 131.8 kB / 353.7 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-06/0.01216, allocations: 0 / 353.7 MB, free: 2.613 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.629e-05/0.01218, allocations: 8 kB / 353.7 MB, free: 2.605 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.054e-05/0.01219, allocations: 4.031 kB / 353.7 MB, free: 2.602 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.766e-05/0.0122, allocations: 4 kB / 353.7 MB, free: 2.598 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.01221, allocations: 0 / 353.7 MB, free: 2.598 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.943e-05/0.01223, allocations: 123.1 kB / 353.8 MB, free: 2.477 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.01223, allocations: 0 / 353.8 MB, free: 2.477 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005213/0.01275, allocations: 127.6 kB / 354 MB, free: 2.352 MB / 282.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.0009676/0.01372, allocations: 337 kB / 354.3 MB, free: 2.023 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.01384, allocations: 122.4 kB / 354.4 MB, free: 1.875 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.01384, allocations: 0 / 354.4 MB, free: 1.875 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.471e-05/0.01388, allocations: 92.78 kB / 354.5 MB, free: 1.762 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001958/0.01407, allocations: 8 kB / 354.5 MB, free: 1.754 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002266/0.0143, allocations: 110.5 kB / 354.6 MB, free: 1.613 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.394e-05/0.01433, allocations: 55.34 kB / 354.7 MB, free: 1.539 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.221e-06/0.01434, allocations: 0 / 354.7 MB, free: 1.539 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.514e-05/0.01435, allocations: 16.62 kB / 354.7 MB, free: 1.523 MB / 282.7 MB Notification: Performance of SimCode: time 5.21e-07/0.01436, allocations: 0 / 354.7 MB, free: 1.523 MB / 282.7 MB Notification: Performance of Templates: time 0.009323/0.02368, allocations: 3.448 MB / 358.1 MB, free: 14.07 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & ./ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.21149467502255]