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.001797/0.001797, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.002216/0.002216, allocations: 209.8 kB / 24.5 MB, free: 4.133 MB / 14.72 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.49/1.49, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 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.2298/0.2298, allocations: 44.9 MB / 359.6 MB, free: 6.32 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 67.91 kB / 0.4943 GB, free: 10.25 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.341, allocations: 65.46 MB / 0.5582 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001577/0.3426, allocations: 0.5072 MB / 0.5587 GB, free: 7.27 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00353/0.3461, allocations: 2.404 MB / 0.5611 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.328e-05/0.3461, allocations: 0 / 0.5611 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.509e-05/0.3461, allocations: 3.938 kB / 0.5611 GB, free: 4.84 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-06/0.3461, allocations: 0 / 0.5611 GB, free: 4.84 MB / 398.1 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.001499/0.3476, allocations: 0.5726 MB / 0.5616 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.613e-05/0.3477, allocations: 15.97 kB / 0.5617 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.811e-05/0.3477, allocations: 0 / 0.5617 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.403e-05/0.3477, allocations: 3.938 kB / 0.5617 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.082e-05/0.3477, allocations: 8 kB / 0.5617 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.39e-06/0.3478, allocations: 0 / 0.5617 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.3491, allocations: 0.7954 MB / 0.5624 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.3491, allocations: 4 kB / 0.5625 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.719e-05/0.3491, allocations: 4 kB / 0.5625 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006553/0.3497, allocations: 461.2 kB / 0.5629 GB, free: 2.988 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3497, allocations: 0 / 0.5629 GB, free: 2.988 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.3497, allocations: 0 / 0.5629 GB, free: 2.988 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3497, allocations: 0 / 0.5629 GB, free: 2.988 MB / 398.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.0004527/0.3502, allocations: 371.1 kB / 0.5632 GB, free: 2.59 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.3502, allocations: 8.031 kB / 0.5633 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.548e-05/0.3503, allocations: 4.938 kB / 0.5633 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.77e-05/0.3504, allocations: 106.5 kB / 0.5634 GB, free: 2.449 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.3504, allocations: 4.312 kB / 0.5634 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.834e-06/0.3504, allocations: 384 / 0.5634 GB, free: 2.445 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.873e-05/0.3505, allocations: 41.94 kB / 0.5634 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.3505, allocations: 3.938 kB / 0.5634 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.3505, allocations: 0 / 0.5634 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.3505, allocations: 3.984 kB / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.595e-05/0.3505, allocations: 0 / 0.5634 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.3506, allocations: 124.8 kB / 0.5635 GB, free: 2.227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.898e-05/0.3507, allocations: 14.58 kB / 0.5635 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.805e-05/0.3507, allocations: 12.78 kB / 0.5636 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.3507, allocations: 4.094 kB / 0.5636 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.3508, allocations: 60.2 kB / 0.5636 GB, free: 2.109 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.3508, allocations: 0 / 0.5636 GB, free: 2.109 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001638/0.3509, allocations: 67.41 kB / 0.5637 GB, free: 2.031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/0.351, allocations: 81.09 kB / 0.5638 GB, free: 1.934 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.486e-05/0.351, allocations: 93.81 kB / 0.5639 GB, free: 1.832 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.3511, allocations: 25.7 kB / 0.5639 GB, free: 1.801 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.171e-05/0.3511, allocations: 84.12 kB / 0.564 GB, free: 1.715 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.828e-05/0.3511, allocations: 8 kB / 0.564 GB, free: 1.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.703e-05/0.3512, allocations: 9.719 kB / 0.564 GB, free: 1.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3513, allocations: 310.8 kB / 0.5643 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.047e-06/0.3513, allocations: 4.125 kB / 0.5643 GB, free: 1.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.629e-06/0.3513, allocations: 7.938 kB / 0.5643 GB, free: 1.367 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.698e-05/0.3514, allocations: 64.27 kB / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3514, allocations: 0 / 0.5643 GB, free: 1.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.895e-05/0.3514, allocations: 59.39 kB / 0.5644 GB, free: 1.219 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.3515, allocations: 37.64 kB / 0.5644 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.3515, allocations: 0 / 0.5644 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.3515, allocations: 0 / 0.5644 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.3515, allocations: 0 / 0.5644 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3515, allocations: 4.094 kB / 0.5644 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.324e-05/0.3515, allocations: 0 / 0.5644 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.3515, allocations: 7.984 kB / 0.5644 GB, free: 1.164 MB / 398.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 9.369e-05/0.3516, allocations: 139.5 kB / 0.5646 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.3516, allocations: 11.88 kB / 0.5646 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.718e-06/0.3516, allocations: 3 kB / 0.5646 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3516, allocations: 3.938 kB / 0.5646 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.3516, allocations: 0 / 0.5646 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3516, allocations: 0 / 0.5646 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.298e-05/0.3517, allocations: 120.8 kB / 0.5647 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3517, allocations: 4 kB / 0.5647 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3517, allocations: 0 / 0.5647 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.3517, allocations: 3.938 kB / 0.5647 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.3517, allocations: 4 kB / 0.5647 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.02e-07/0.3517, allocations: 0 / 0.5647 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3517, allocations: 3.938 kB / 0.5647 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.3519, allocations: 98.83 kB / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-06/0.3519, allocations: 0 / 0.5648 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.3519, allocations: 7.938 kB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.416e-06/0.3519, allocations: 0 / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.819e-06/0.3519, allocations: 0 / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.3519, allocations: 0 / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.3519, allocations: 75.28 kB / 0.5649 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3519, allocations: 3.938 kB / 0.5649 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004492/0.3524, allocations: 163.4 kB / 0.5651 GB, free: 460 kB / 398.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.0007523/0.3531, allocations: 343.7 kB / 0.5654 GB, free: 112 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.3533, allocations: 67.39 kB / 0.5655 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3533, allocations: 0 / 0.5655 GB, free: 32 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.446e-05/0.3533, allocations: 55.41 kB / 0.5655 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001192/0.3534, allocations: 128 / 0.5655 GB, free: 15.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002025/0.3536, allocations: 118.7 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.3539, allocations: 0.669 MB / 0.5663 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.354, allocations: 11.44 kB / 0.5663 GB, free: 15.11 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.354, allocations: 0 / 0.5663 GB, free: 15.11 MB / 414.1 MB Notification: Performance of Templates: time 0.006227/0.3602, allocations: 3.389 MB / 0.5696 GB, free: 11.72 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 8.521971420152113]