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.00194/0.00194, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002145/0.002145, allocations: 218 kB / 23.73 MB, free: 4.164 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.54/1.54, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2483/0.2483, allocations: 44.94 MB / 358.8 MB, free: 6.059 MB / 286.1 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.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.002131/0.002131, allocations: 71.91 kB / 0.4935 GB, free: 10.04 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.336, allocations: 65.48 MB / 0.5575 GB, free: 7.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00168/0.3376, allocations: 0.497 MB / 0.5579 GB, free: 6.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003628/0.3413, allocations: 2.237 MB / 0.5601 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.667e-05/0.3413, allocations: 0 / 0.5601 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.848e-05/0.3413, allocations: 0 / 0.5601 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.3413, allocations: 0 / 0.5601 GB, free: 4.734 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.001739/0.343, allocations: 0.5838 MB / 0.5607 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.418e-05/0.3431, allocations: 4 kB / 0.5607 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.642e-05/0.3431, allocations: 4 kB / 0.5607 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.801e-05/0.3432, allocations: 3.984 kB / 0.5607 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.209e-05/0.3432, allocations: 3.938 kB / 0.5607 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.3432, allocations: 0 / 0.5607 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.3445, allocations: 0.6823 MB / 0.5614 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.944e-06/0.3445, allocations: 0 / 0.5614 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.066e-05/0.3445, allocations: 0 / 0.5614 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007198/0.3452, allocations: 445.3 kB / 0.5618 GB, free: 3.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.3452, allocations: 0 / 0.5618 GB, free: 3.023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3452, allocations: 4 kB / 0.5618 GB, free: 3.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.3452, allocations: 0 / 0.5618 GB, free: 3.02 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.0005109/0.3457, allocations: 365.5 kB / 0.5622 GB, free: 2.629 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.3458, allocations: 8.031 kB / 0.5622 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.3458, allocations: 0.9375 kB / 0.5622 GB, free: 2.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001047/0.3459, allocations: 114.5 kB / 0.5623 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.037e-06/0.3459, allocations: 384 / 0.5623 GB, free: 2.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.522e-05/0.3459, allocations: 4.359 kB / 0.5623 GB, free: 2.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.3461, allocations: 63.72 kB / 0.5623 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3461, allocations: 0 / 0.5623 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.3461, allocations: 4 kB / 0.5623 GB, free: 2.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.3461, allocations: 3.938 kB / 0.5623 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.597e-05/0.3461, allocations: 29.7 kB / 0.5624 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001195/0.3462, allocations: 93.33 kB / 0.5625 GB, free: 2.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.271e-05/0.3463, allocations: 56.17 kB / 0.5625 GB, free: 2.172 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.354e-05/0.3464, allocations: 34.56 kB / 0.5625 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-06/0.3464, allocations: 0 / 0.5625 GB, free: 2.129 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.692e-05/0.3464, allocations: 60.33 kB / 0.5626 GB, free: 2.055 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.3464, allocations: 0 / 0.5626 GB, free: 2.055 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002292/0.3467, allocations: 118.7 kB / 0.5627 GB, free: 1.914 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/0.3467, allocations: 85.23 kB / 0.5628 GB, free: 1.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.638e-05/0.3468, allocations: 93.81 kB / 0.5629 GB, free: 1.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.565e-05/0.3468, allocations: 25.7 kB / 0.5629 GB, free: 1.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.15e-05/0.3468, allocations: 84.14 kB / 0.563 GB, free: 1.594 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.3469, allocations: 7.938 kB / 0.563 GB, free: 1.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.879e-05/0.3469, allocations: 9.719 kB / 0.563 GB, free: 1.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.347, allocations: 310.8 kB / 0.5633 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.03e-05/0.3471, allocations: 33.69 kB / 0.5633 GB, free: 1.219 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.863e-05/0.3471, allocations: 25.7 kB / 0.5634 GB, free: 1.188 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.675e-05/0.3472, allocations: 64.27 kB / 0.5634 GB, free: 1.109 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3472, allocations: 4.062 kB / 0.5634 GB, free: 1.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.507e-05/0.3473, allocations: 85.11 kB / 0.5635 GB, free: 1.004 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.401e-05/0.3473, allocations: 33.69 kB / 0.5635 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.3473, allocations: 0 / 0.5635 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.3473, allocations: 7.938 kB / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3473, allocations: 0 / 0.5635 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3473, allocations: 3.938 kB / 0.5636 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.459e-05/0.3473, allocations: 0 / 0.5636 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3473, allocations: 0 / 0.5636 GB, free: 0.9531 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 0.0001007/0.3474, allocations: 143.6 kB / 0.5637 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-06/0.3475, allocations: 0 / 0.5637 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.3475, allocations: 6.938 kB / 0.5637 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.3475, allocations: 3.984 kB / 0.5637 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3475, allocations: 0 / 0.5637 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-06/0.3475, allocations: 4 kB / 0.5637 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.18e-05/0.3476, allocations: 93.33 kB / 0.5638 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.3476, allocations: 0 / 0.5638 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-07/0.3476, allocations: 3.938 kB / 0.5638 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.3476, allocations: 0 / 0.5638 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.3476, allocations: 4 kB / 0.5638 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.3476, allocations: 11.94 kB / 0.5638 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3476, allocations: 0 / 0.5638 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.3477, allocations: 120.5 kB / 0.5639 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-06/0.3477, allocations: 0 / 0.5639 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.3477, allocations: 0 / 0.5639 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.325e-05/0.3477, allocations: 7.938 kB / 0.5639 GB, free: 496 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.445e-05/0.3477, allocations: 15.86 kB / 0.5639 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.3477, allocations: 0 / 0.5639 GB, free: 480 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.643e-05/0.3478, allocations: 75.28 kB / 0.564 GB, free: 404 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3478, allocations: 0 / 0.564 GB, free: 404 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.3482, allocations: 159.4 kB / 0.5642 GB, free: 244 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.0007786/0.349, allocations: 343.3 kB / 0.5645 GB, free: 15.9 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.3492, allocations: 118.8 kB / 0.5646 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.3492, allocations: 0 / 0.5646 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/0.3492, allocations: 81.11 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.3493, allocations: 4.125 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002309/0.3496, allocations: 114.7 kB / 0.5648 GB, free: 15.51 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.523e-05/0.3496, allocations: 59.34 kB / 0.5649 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.15e-06/0.3496, allocations: 3.938 kB / 0.5649 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.536e-05/0.3496, allocations: 11.44 kB / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3496, allocations: 0 / 0.5649 GB, free: 15.42 MB / 414.1 MB Notification: Performance of Templates: time 0.00776/0.3574, allocations: 3.593 MB / 0.5684 GB, free: 11.83 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/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: 5.49180100671947]