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.001649/0.001649, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.001944/0.001944, allocations: 206.8 kB / 24.47 MB, free: 4.023 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.474/1.474, allocations: 230.2 MB / 257.8 MB, free: 8.508 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.2537/0.2537, allocations: 46.89 MB / 361.1 MB, free: 4.633 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.002384/0.002384, allocations: 75.88 kB / 0.4968 GB, free: 8.379 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4015, allocations: 65.97 MB / 0.5612 GB, free: 34.53 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001559/0.403, allocations: 0.4985 MB / 0.5617 GB, free: 34.24 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.4058, allocations: 2.401 MB / 0.564 GB, free: 32.58 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.107e-05/0.4059, allocations: 0.5312 kB / 0.564 GB, free: 32.58 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.179e-05/0.4059, allocations: 1.594 kB / 0.564 GB, free: 32.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 6.602e-06/0.4059, allocations: 0 / 0.564 GB, free: 32.58 MB / 446.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.001365/0.4072, allocations: 0.5705 MB / 0.5646 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.244e-05/0.4073, allocations: 3.938 kB / 0.5646 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.008e-05/0.4073, allocations: 3.375 kB / 0.5646 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.329e-05/0.4073, allocations: 0 / 0.5646 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.575e-05/0.4073, allocations: 0 / 0.5646 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.691e-06/0.4074, allocations: 0 / 0.5646 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.4084, allocations: 0.738 MB / 0.5653 GB, free: 32.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.486e-06/0.4084, allocations: 0 / 0.5653 GB, free: 32.12 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.298e-05/0.4084, allocations: 6.891 kB / 0.5653 GB, free: 32.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005118/0.4089, allocations: 452.5 kB / 0.5657 GB, free: 31.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.4089, allocations: 4 kB / 0.5657 GB, free: 31.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4089, allocations: 3.188 kB / 0.5657 GB, free: 31.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.409, allocations: 7.844 kB / 0.5658 GB, free: 31.97 MB / 446.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.0003632/0.4093, allocations: 440 kB / 0.5662 GB, free: 31.53 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.4094, allocations: 16.53 kB / 0.5662 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.815e-05/0.4094, allocations: 0.9375 kB / 0.5662 GB, free: 31.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.789e-05/0.4095, allocations: 160.4 kB / 0.5663 GB, free: 31.33 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.4095, allocations: 4.312 kB / 0.5663 GB, free: 31.32 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.246e-06/0.4095, allocations: 3.281 kB / 0.5663 GB, free: 31.32 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.501e-05/0.4095, allocations: 33.44 kB / 0.5664 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.4096, allocations: 2.938 kB / 0.5664 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.4096, allocations: 4 kB / 0.5664 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.4096, allocations: 0 / 0.5664 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.672e-05/0.4096, allocations: 1.844 kB / 0.5664 GB, free: 31.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.639e-05/0.4097, allocations: 156.6 kB / 0.5665 GB, free: 31.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.459e-05/0.4097, allocations: 21.66 kB / 0.5666 GB, free: 31.06 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.278e-05/0.4097, allocations: 11.33 kB / 0.5666 GB, free: 31.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.4097, allocations: 0 / 0.5666 GB, free: 31.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.4098, allocations: 60.2 kB / 0.5666 GB, free: 30.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.4098, allocations: 0 / 0.5666 GB, free: 30.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.4099, allocations: 71.97 kB / 0.5667 GB, free: 30.91 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.952e-05/0.41, allocations: 77.11 kB / 0.5668 GB, free: 30.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.903e-05/0.41, allocations: 92.05 kB / 0.5669 GB, free: 30.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.712e-06/0.41, allocations: 25.7 kB / 0.5669 GB, free: 30.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.638e-06/0.41, allocations: 83.33 kB / 0.567 GB, free: 30.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.014e-05/0.41, allocations: 4 kB / 0.567 GB, free: 30.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.283e-05/0.41, allocations: 12.78 kB / 0.567 GB, free: 30.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.964e-05/0.4101, allocations: 317.8 kB / 0.5673 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.4101, allocations: 0 / 0.5673 GB, free: 30.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.06e-06/0.4101, allocations: 0 / 0.5673 GB, free: 30.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.579e-05/0.4101, allocations: 66.39 kB / 0.5673 GB, free: 30.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4101, allocations: 0 / 0.5673 GB, free: 30.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.192e-05/0.4102, allocations: 65 kB / 0.5674 GB, free: 30.13 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.4102, allocations: 38.86 kB / 0.5674 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.476e-06/0.4102, allocations: 0 / 0.5674 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.4102, allocations: 0 / 0.5674 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.4102, allocations: 0 / 0.5674 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.4102, allocations: 0 / 0.5674 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.4103, allocations: 0 / 0.5674 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.4103, allocations: 2.719 kB / 0.5674 GB, free: 30.09 MB / 446.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 4.766e-05/0.4103, allocations: 146.4 kB / 0.5676 GB, free: 29.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.438e-06/0.4103, allocations: 11.16 kB / 0.5676 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.063e-05/0.4103, allocations: 3.125 kB / 0.5676 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.71e-07/0.4103, allocations: 0 / 0.5676 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4103, allocations: 0 / 0.5676 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.4103, allocations: 3.156 kB / 0.5676 GB, free: 29.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.784e-05/0.4104, allocations: 145.1 kB / 0.5677 GB, free: 29.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.4104, allocations: 0 / 0.5677 GB, free: 29.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4e-07/0.4104, allocations: 0 / 0.5677 GB, free: 29.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.4104, allocations: 7.875 kB / 0.5677 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.4104, allocations: 7.094 kB / 0.5678 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.4104, allocations: 0 / 0.5678 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.4104, allocations: 0 / 0.5678 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.352e-05/0.4105, allocations: 95.12 kB / 0.5678 GB, free: 29.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.383e-05/0.4105, allocations: 77.11 kB / 0.5679 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.4105, allocations: 3.938 kB / 0.5679 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.708e-06/0.4105, allocations: 4 kB / 0.5679 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.4105, allocations: 4.031 kB / 0.5679 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-06/0.4105, allocations: 2.969 kB / 0.5679 GB, free: 29.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.328e-05/0.4105, allocations: 75.28 kB / 0.568 GB, free: 29.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4105, allocations: 0 / 0.568 GB, free: 29.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004279/0.411, allocations: 161.8 kB / 0.5682 GB, free: 29.4 MB / 446.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.0007201/0.4117, allocations: 350.6 kB / 0.5685 GB, free: 29.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 9.79e-05/0.4118, allocations: 58.62 kB / 0.5685 GB, free: 29.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4118, allocations: 0 / 0.5685 GB, free: 29.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.672e-05/0.4118, allocations: 59.77 kB / 0.5686 GB, free: 29.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001238/0.4119, allocations: 2.953 kB / 0.5686 GB, free: 29.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001887/0.4121, allocations: 95.55 kB / 0.5687 GB, free: 29 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.4122, allocations: 0.6704 MB / 0.5694 GB, free: 28.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.032e-06/0.4122, allocations: 8.125 kB / 0.5694 GB, free: 28.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.072e-05/0.4122, allocations: 10.47 kB / 0.5694 GB, free: 28.29 MB / 446.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4122, allocations: 0 / 0.5694 GB, free: 28.29 MB / 446.1 MB Notification: Performance of Templates: time 0.009083/0.4213, allocations: 3.606 MB / 0.5729 GB, free: 27.97 MB / 446.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.424377406947315]