Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 213.7 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.546/1.546, allocations: 230.3 MB / 258 MB, free: 8.172 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2563/0.2563, allocations: 46.94 MB / 361.4 MB, free: 4.355 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002319/0.002319, allocations: 79.88 kB / 0.4972 GB, free: 7.488 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.348/0.3503, allocations: 66.04 MB / 0.5617 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001705/0.352, allocations: 0.4922 MB / 0.5621 GB, free: 4.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003589/0.3556, allocations: 2.416 MB / 0.5645 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.3556, allocations: 0 / 0.5645 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.3556, allocations: 0 / 0.5645 GB, free: 1.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3556, allocations: 0 / 0.5645 GB, free: 1.578 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001633/0.3573, allocations: 0.5842 MB / 0.5651 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.264e-05/0.3573, allocations: 0 / 0.5651 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.358e-05/0.3574, allocations: 11.98 kB / 0.5651 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.944e-05/0.3574, allocations: 3.938 kB / 0.5651 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.786e-05/0.3574, allocations: 0 / 0.5651 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.3574, allocations: 4 kB / 0.5651 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.3588, allocations: 0.7954 MB / 0.5659 GB, free: 180 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.3588, allocations: 3.984 kB / 0.5659 GB, free: 176 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.866e-05/0.3588, allocations: 0 / 0.5659 GB, free: 176 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007331/0.3595, allocations: 469.3 kB / 0.5663 GB, free: 15.72 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3595, allocations: 0 / 0.5663 GB, free: 15.72 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3595, allocations: 0 / 0.5663 GB, free: 15.72 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.3595, allocations: 0 / 0.5663 GB, free: 15.72 MB / 414.1 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.0004888/0.36, allocations: 371.1 kB / 0.5667 GB, free: 15.32 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3601, allocations: 12.03 kB / 0.5667 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.3601, allocations: 0.9375 kB / 0.5667 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.863e-05/0.3602, allocations: 102.5 kB / 0.5668 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.3602, allocations: 4.312 kB / 0.5668 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.578e-06/0.3602, allocations: 4.375 kB / 0.5668 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.751e-05/0.3603, allocations: 38 kB / 0.5668 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.635e-06/0.3603, allocations: 0 / 0.5668 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.3603, allocations: 0 / 0.5668 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.3603, allocations: 0 / 0.5668 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.087e-05/0.3603, allocations: 7.938 kB / 0.5668 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001366/0.3605, allocations: 116.8 kB / 0.5669 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.55e-05/0.3605, allocations: 18.61 kB / 0.567 GB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.767e-05/0.3605, allocations: 12.84 kB / 0.567 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.085e-06/0.3605, allocations: 0 / 0.567 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.449e-05/0.3606, allocations: 60.2 kB / 0.567 GB, free: 14.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.3606, allocations: 0 / 0.567 GB, free: 14.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001839/0.3608, allocations: 67.41 kB / 0.5671 GB, free: 14.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.3609, allocations: 81.11 kB / 0.5672 GB, free: 14.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.438e-05/0.3609, allocations: 97.8 kB / 0.5673 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.3609, allocations: 25.83 kB / 0.5673 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.594e-05/0.361, allocations: 84.14 kB / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/0.361, allocations: 4 kB / 0.5674 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.103e-05/0.361, allocations: 13.72 kB / 0.5674 GB, free: 14.43 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.3612, allocations: 310.8 kB / 0.5677 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.568e-06/0.3612, allocations: 0 / 0.5677 GB, free: 14.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.458e-06/0.3612, allocations: 4 kB / 0.5677 GB, free: 14.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.498e-05/0.3612, allocations: 64.2 kB / 0.5677 GB, free: 14.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3612, allocations: 4.062 kB / 0.5677 GB, free: 14.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.656e-05/0.3613, allocations: 67.33 kB / 0.5678 GB, free: 13.95 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.3613, allocations: 35.98 kB / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3613, allocations: 4 kB / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.3614, allocations: 0 / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.81e-07/0.3614, allocations: 0 / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.3614, allocations: 0 / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.397e-05/0.3614, allocations: 0 / 0.5678 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-06/0.3614, allocations: 0 / 0.5678 GB, free: 13.91 MB / 414.1 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.0001073/0.3615, allocations: 147.6 kB / 0.568 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.3615, allocations: 3.938 kB / 0.568 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.036e-05/0.3615, allocations: 3 kB / 0.568 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.3615, allocations: 3.938 kB / 0.568 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3615, allocations: 0 / 0.568 GB, free: 13.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.3615, allocations: 4 kB / 0.568 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001029/0.3616, allocations: 112.8 kB / 0.5681 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3616, allocations: 3.984 kB / 0.5681 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-07/0.3616, allocations: 0 / 0.5681 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.746e-06/0.3616, allocations: 3.938 kB / 0.5681 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.3616, allocations: 12 kB / 0.5681 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.3616, allocations: 0 / 0.5681 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3616, allocations: 0 / 0.5681 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.3618, allocations: 98.77 kB / 0.5682 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-06/0.3618, allocations: 0 / 0.5682 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.3618, allocations: 3.938 kB / 0.5682 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.285e-06/0.3618, allocations: 0 / 0.5682 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.004e-05/0.3618, allocations: 0 / 0.5682 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.3618, allocations: 8.031 kB / 0.5682 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.308e-05/0.3618, allocations: 75.28 kB / 0.5683 GB, free: 13.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3618, allocations: 0 / 0.5683 GB, free: 13.36 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.3623, allocations: 163.4 kB / 0.5685 GB, free: 13.2 MB / 414.1 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.0008186/0.3631, allocations: 353.1 kB / 0.5688 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001079/0.3632, allocations: 63.39 kB / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3632, allocations: 3.938 kB / 0.5689 GB, free: 12.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.795e-05/0.3632, allocations: 55.41 kB / 0.5689 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.3634, allocations: 4 kB / 0.5689 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00019/0.3636, allocations: 81 kB / 0.569 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003187/0.3639, allocations: 0.6768 MB / 0.5697 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.492e-06/0.3639, allocations: 128 / 0.5697 GB, free: 11.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.182e-05/0.3639, allocations: 11.44 kB / 0.5697 GB, free: 11.88 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3639, allocations: 0 / 0.5697 GB, free: 11.88 MB / 414.1 MB Notification: Performance of Templates: time 0.008322/0.3722, allocations: 3.603 MB / 0.5732 GB, free: 8.273 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.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.4125681314617395]