Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001376/0.001376, allocations: 82.84 kB / 20.68 MB, free: 1.039 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.001542/0.001542, allocations: 157 kB / 23.95 MB, free: 4.168 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.495/1.495, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.256/0.256, allocations: 34.26 MB / 294.8 MB, free: 14.54 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 442.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.221e-05/3.419e-05, allocations: 8.953 kB / 442.6 MB, free: 5.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002494/0.002529, allocations: 0.5126 MB / 443.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006566/0.009094, allocations: 2.245 MB / 445.4 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.661e-05/0.009121, allocations: 0 / 445.4 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.414e-05/0.009135, allocations: 0 / 445.4 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.835e-06/0.009143, allocations: 4 kB / 445.4 MB, free: 2.543 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.002925/0.01207, allocations: 0.5801 MB / 446 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.515e-05/0.01213, allocations: 0 / 446 MB, free: 1.961 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.138e-05/0.01218, allocations: 7.922 kB / 446 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.564e-05/0.01222, allocations: 0 / 446 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.128e-05/0.01225, allocations: 7.984 kB / 446 MB, free: 1.945 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-06/0.01226, allocations: 0 / 446 MB, free: 1.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002165/0.01443, allocations: 0.6821 MB / 446.7 MB, free: 1.262 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.01445, allocations: 4 kB / 446.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.01447, allocations: 0 / 446.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001321/0.01579, allocations: 0.5299 MB / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.01579, allocations: 0 / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.0158, allocations: 0 / 447.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.0158, allocations: 0 / 447.2 MB, free: 0.7266 MB / 366.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.0007062/0.01651, allocations: 375 kB / 447.6 MB, free: 332 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.01655, allocations: 8.031 kB / 447.6 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.27e-05/0.0166, allocations: 0.9375 kB / 447.6 MB, free: 324 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001455/0.01674, allocations: 105.7 kB / 447.7 MB, free: 192 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.01676, allocations: 4.375 kB / 447.7 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.01677, allocations: 384 / 447.7 MB, free: 188 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001511/0.01692, allocations: 55.97 kB / 447.8 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.01693, allocations: 192 / 447.8 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.01695, allocations: 384 / 447.8 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.01696, allocations: 7.922 kB / 447.8 MB, free: 112 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.914e-05/0.01701, allocations: 25.7 kB / 447.8 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2216/0.2386, allocations: 99.08 kB / 447.9 MB, free: 19.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.2387, allocations: 47.16 kB / 447.9 MB, free: 19.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.398e-05/0.2387, allocations: 31.53 kB / 448 MB, free: 19.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.2387, allocations: 4.688 kB / 448 MB, free: 19.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.2387, allocations: 59.2 kB / 448 MB, free: 19.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 3.116e-06/0.2388, allocations: 1.172 kB / 448 MB, free: 19.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002233/0.239, allocations: 117.7 kB / 448.1 MB, free: 18.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.239, allocations: 79.64 kB / 448.2 MB, free: 18.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.514e-05/0.239, allocations: 91.8 kB / 448.3 MB, free: 18.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.444e-06/0.239, allocations: 29.08 kB / 448.3 MB, free: 18.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.124e-05/0.2391, allocations: 80.75 kB / 448.4 MB, free: 18.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.587e-05/0.2391, allocations: 5.047 kB / 448.4 MB, free: 18.61 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.2391, allocations: 15.33 kB / 448.4 MB, free: 18.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.507e-05/0.2392, allocations: 315.3 kB / 448.7 MB, free: 18.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.652e-05/0.2392, allocations: 28.02 kB / 448.8 MB, free: 18.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.434e-05/0.2392, allocations: 34.88 kB / 448.8 MB, free: 18.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.875e-05/0.2393, allocations: 62.27 kB / 448.9 MB, free: 18.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.2393, allocations: 0 / 448.9 MB, free: 18.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.357e-05/0.2393, allocations: 89.56 kB / 449 MB, free: 18.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.2394, allocations: 31.92 kB / 449 MB, free: 18.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.2394, allocations: 0 / 449 MB, free: 18.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.2394, allocations: 5.188 kB / 449 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-06/0.2394, allocations: 5.516 kB / 449 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2394, allocations: 3.969 kB / 449 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.052e-05/0.2394, allocations: 5 kB / 449 MB, free: 18.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.786e-06/0.2394, allocations: 1.125 kB / 449 MB, free: 18.02 MB / 366.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 5.892e-05/0.2395, allocations: 137.3 kB / 449.1 MB, free: 17.88 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.2395, allocations: 1.688 kB / 449.1 MB, free: 17.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.2395, allocations: 8.688 kB / 449.1 MB, free: 17.87 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.2395, allocations: 1.062 kB / 449.1 MB, free: 17.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.2395, allocations: 0.5625 kB / 449.1 MB, free: 17.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2395, allocations: 0 / 449.1 MB, free: 17.87 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.608e-05/0.2396, allocations: 101 kB / 449.2 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2396, allocations: 1.516 kB / 449.2 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.82e-07/0.2396, allocations: 1.938 kB / 449.3 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.2396, allocations: 1.75 kB / 449.3 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.2396, allocations: 3.25 kB / 449.3 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2396, allocations: 0.5625 kB / 449.3 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2396, allocations: 1.375 kB / 449.3 MB, free: 17.74 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.96e-05/0.2397, allocations: 120.7 kB / 449.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.53e-06/0.2397, allocations: 1.734 kB / 449.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.414e-05/0.2397, allocations: 1.375 kB / 449.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.848e-06/0.2397, allocations: 4.781 kB / 449.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.2397, allocations: 4.562 kB / 449.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.2397, allocations: 2.031 kB / 449.4 MB, free: 17.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 1.493e-05/0.2397, allocations: 75.28 kB / 449.5 MB, free: 17.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2397, allocations: 1.188 kB / 449.5 MB, free: 17.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005765/0.2403, allocations: 161.2 kB / 449.6 MB, free: 17.54 MB / 366.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.0008374/0.2411, allocations: 386.7 kB / 450 MB, free: 17.41 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.922e-05/0.2412, allocations: 115.3 kB / 450.1 MB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2412, allocations: 0.9062 kB / 450.1 MB, free: 17.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.316e-05/0.2413, allocations: 83.98 kB / 450.2 MB, free: 17.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.2414, allocations: 3.328 kB / 450.2 MB, free: 17.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001683/0.2416, allocations: 108.5 kB / 450.3 MB, free: 17.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.722e-05/0.2416, allocations: 56.83 kB / 450.4 MB, free: 17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.781e-06/0.2416, allocations: 3.047 kB / 450.4 MB, free: 17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.048e-05/0.2416, allocations: 9.75 kB / 450.4 MB, free: 16.99 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2416, allocations: 1.406 kB / 450.4 MB, free: 16.99 MB / 366.1 MB Notification: Performance of Templates: time 0.00887/0.2505, allocations: 3.636 MB / 454 MB, free: 16.71 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.0370294488966465]