Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.00148/0.00148, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001592/0.001592, allocations: 170.8 kB / 24.91 MB, free: 9.145 MB / 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.121/1.121, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.2612/0.2612, allocations: 32.81 MB / 294.6 MB, free: 1.246 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.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 323.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.62e-05/2.796e-05, allocations: 3.016 kB / 323.2 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001347/0.001375, allocations: 0.5159 MB / 323.7 MB, free: 9.207 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002819/0.004194, allocations: 2.312 MB / 326 MB, free: 6.871 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.516e-05/0.004219, allocations: 4 kB / 326 MB, free: 6.867 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.027e-05/0.00424, allocations: 0 / 326 MB, free: 6.867 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.839e-06/0.00425, allocations: 0 / 326 MB, free: 6.867 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.005733, allocations: 0.5956 MB / 326.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.155e-05/0.005784, allocations: 0.625 kB / 326.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.611e-05/0.00582, allocations: 4 kB / 326.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.06e-05/0.005851, allocations: 0 / 326.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.011e-05/0.005871, allocations: 4 kB / 326.6 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.955e-06/0.005879, allocations: 0 / 326.6 MB, free: 6.262 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009278/0.006807, allocations: 0.6782 MB / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.065e-05/0.006817, allocations: 0 / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 1.701e-05/0.006835, allocations: 0 / 327.3 MB, free: 5.582 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005869/0.007421, allocations: 0.5304 MB / 327.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.007425, allocations: 0 / 327.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.007427, allocations: 0 / 327.8 MB, free: 5.051 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.007431, allocations: 0 / 327.8 MB, free: 5.051 MB / 298.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.0003591/0.007791, allocations: 345.3 kB / 328.2 MB, free: 4.684 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.007826, allocations: 8.031 kB / 328.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.821e-05/0.007854, allocations: 0.9375 kB / 328.2 MB, free: 4.676 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.53e-05/0.00791, allocations: 109.8 kB / 328.3 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.00792, allocations: 4.312 kB / 328.3 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.665e-06/0.007928, allocations: 384 / 328.3 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.281e-05/0.008, allocations: 59.97 kB / 328.4 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.008008, allocations: 192 / 328.4 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.652e-06/0.008015, allocations: 384 / 328.4 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.008023, allocations: 7.922 kB / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.753e-05/0.00804, allocations: 29.69 kB / 328.4 MB, free: 4.426 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.676e-05/0.008117, allocations: 61.05 kB / 328.5 MB, free: 4.352 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.469e-05/0.008172, allocations: 48.25 kB / 328.5 MB, free: 4.289 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.828e-05/0.00819, allocations: 30.56 kB / 328.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.108e-06/0.008194, allocations: 0 / 328.5 MB, free: 4.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.008233, allocations: 60.33 kB / 328.6 MB, free: 4.176 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.008234, allocations: 4 kB / 328.6 MB, free: 4.172 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001282/0.008362, allocations: 110.8 kB / 328.7 MB, free: 4.039 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.008399, allocations: 77.11 kB / 328.8 MB, free: 3.945 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.502e-05/0.008434, allocations: 93.86 kB / 328.9 MB, free: 3.844 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.008443, allocations: 25.7 kB / 328.9 MB, free: 3.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.786e-05/0.008461, allocations: 80.14 kB / 329 MB, free: 3.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.875e-05/0.00848, allocations: 5.203 kB / 329 MB, free: 3.727 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.008509, allocations: 13.72 kB / 329 MB, free: 3.707 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.008586, allocations: 322.7 kB / 329.3 MB, free: 3.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.442e-05/0.0086, allocations: 25.7 kB / 329.3 MB, free: 3.352 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.442e-05/0.008615, allocations: 37.83 kB / 329.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.453e-05/0.008659, allocations: 60.25 kB / 329.4 MB, free: 3.234 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.008661, allocations: 4 kB / 329.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.711e-05/0.008718, allocations: 85.09 kB / 329.5 MB, free: 3.129 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.008746, allocations: 29.7 kB / 329.6 MB, free: 3.094 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.008753, allocations: 3.984 kB / 329.6 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.008766, allocations: 4 kB / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.637e-06/0.00877, allocations: 0 / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.008773, allocations: 0 / 329.6 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.499e-05/0.008788, allocations: 11.97 kB / 329.6 MB, free: 3.074 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.008796, allocations: 3.938 kB / 329.6 MB, free: 3.07 MB / 298.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.325e-05/0.008869, allocations: 139.5 kB / 329.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.519e-06/0.008873, allocations: 0 / 329.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.273e-05/0.008886, allocations: 3 kB / 329.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.008888, allocations: 0 / 329.7 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.008891, allocations: 4 kB / 329.7 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.008894, allocations: 0 / 329.7 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.505e-05/0.008949, allocations: 65.84 kB / 329.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.00895, allocations: 0 / 329.8 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.00895, allocations: 4 kB / 329.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.82e-07/0.008951, allocations: 0 / 329.8 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.008957, allocations: 4 kB / 329.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.008957, allocations: 0 / 329.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.008958, allocations: 0 / 329.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.236e-05/0.00903, allocations: 112.5 kB / 329.9 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.178e-06/0.009035, allocations: 352 / 329.9 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.009046, allocations: 11.92 kB / 329.9 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.569e-06/0.009051, allocations: 0 / 329.9 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-06/0.009059, allocations: 0 / 329.9 MB, free: 2.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.009062, allocations: 0 / 329.9 MB, free: 2.672 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.616e-06/0.00907, allocations: 12.89 kB / 329.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.00907, allocations: 0 / 329.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003271/0.009397, allocations: 159.3 kB / 330.1 MB, free: 2.5 MB / 298.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.0006561/0.01005, allocations: 372.2 kB / 330.4 MB, free: 2.145 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.01017, allocations: 123.7 kB / 330.6 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.01017, allocations: 0 / 330.6 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.676e-05/0.01021, allocations: 93.95 kB / 330.7 MB, free: 1.883 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.07e-05/0.01027, allocations: 7.875 kB / 330.7 MB, free: 1.875 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001731/0.01044, allocations: 105.4 kB / 330.8 MB, free: 1.738 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.868e-05/0.01047, allocations: 55.3 kB / 330.8 MB, free: 1.664 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.242e-06/0.01048, allocations: 4 kB / 330.8 MB, free: 1.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.01051, allocations: 59.34 kB / 330.9 MB, free: 1.602 MB / 298.7 MB Notification: Performance of SimCode: time 6.62e-07/0.01051, allocations: 0 / 330.9 MB, free: 1.602 MB / 298.7 MB Notification: Performance of Templates: time 0.006186/0.0167, allocations: 4.291 MB / 335.2 MB, free: 13.31 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.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.327883082907647]