Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002279/0.002279, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002719/0.002719, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.571/1.571, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2726/0.2726, allocations: 46.96 MB / 360.9 MB, free: 4.082 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+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.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 67.88 kB / 0.4966 GB, free: 7.273 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.386/0.3881, allocations: 66.04 MB / 0.5611 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001885/0.39, allocations: 0.4932 MB / 0.5616 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003763/0.3937, allocations: 2.241 MB / 0.5637 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.331e-05/0.3938, allocations: 0 / 0.5637 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.3938, allocations: 0 / 0.5637 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.183e-06/0.3938, allocations: 0 / 0.5637 GB, free: 1.457 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001802/0.3956, allocations: 0.5837 MB / 0.5643 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.773e-05/0.3956, allocations: 11.98 kB / 0.5643 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.3957, allocations: 3.938 kB / 0.5643 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.782e-05/0.3957, allocations: 3.938 kB / 0.5643 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.533e-05/0.3957, allocations: 4 kB / 0.5643 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.3957, allocations: 0 / 0.5643 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.3971, allocations: 0.7175 MB / 0.565 GB, free: 136 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.456e-06/0.3971, allocations: 0 / 0.565 GB, free: 136 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.59e-05/0.3971, allocations: 8 kB / 0.565 GB, free: 128 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007286/0.3978, allocations: 453.2 kB / 0.5655 GB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3979, allocations: 0 / 0.5655 GB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3979, allocations: 0 / 0.5655 GB, free: 15.69 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.3979, allocations: 4 kB / 0.5655 GB, free: 15.68 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.0005074/0.3984, allocations: 359.1 kB / 0.5658 GB, free: 15.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3984, allocations: 12.03 kB / 0.5658 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.895e-05/0.3984, allocations: 0.9375 kB / 0.5658 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.3985, allocations: 110.5 kB / 0.5659 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.3986, allocations: 384 / 0.5659 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-06/0.3986, allocations: 384 / 0.5659 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001132/0.3987, allocations: 63.66 kB / 0.566 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3987, allocations: 3.938 kB / 0.566 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.3987, allocations: 0 / 0.566 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.636e-06/0.3987, allocations: 0 / 0.566 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.46e-05/0.3987, allocations: 29.7 kB / 0.566 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001326/0.3989, allocations: 97.33 kB / 0.5661 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.119e-05/0.3989, allocations: 48.3 kB / 0.5662 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.959e-05/0.399, allocations: 34.56 kB / 0.5662 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.399, allocations: 0 / 0.5662 GB, free: 14.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.818e-05/0.399, allocations: 68.27 kB / 0.5663 GB, free: 14.73 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.399, allocations: 0 / 0.5663 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002207/0.3993, allocations: 118.7 kB / 0.5664 GB, free: 14.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.3993, allocations: 77.11 kB / 0.5665 GB, free: 14.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.176e-05/0.3994, allocations: 93.81 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.3994, allocations: 29.7 kB / 0.5666 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.667e-05/0.3995, allocations: 84.14 kB / 0.5667 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.456e-05/0.3995, allocations: 4 kB / 0.5667 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.872e-05/0.3995, allocations: 13.84 kB / 0.5667 GB, free: 14.25 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.3997, allocations: 314.8 kB / 0.567 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.781e-05/0.3997, allocations: 29.69 kB / 0.567 GB, free: 13.89 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.941e-05/0.3997, allocations: 25.7 kB / 0.567 GB, free: 13.86 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.748e-05/0.3998, allocations: 68.2 kB / 0.5671 GB, free: 13.78 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.3998, allocations: 0 / 0.5671 GB, free: 13.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.557e-05/0.3999, allocations: 85.11 kB / 0.5672 GB, free: 13.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.3999, allocations: 37.69 kB / 0.5672 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3999, allocations: 3.938 kB / 0.5672 GB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.3999, allocations: 8.031 kB / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3999, allocations: 0 / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3999, allocations: 0 / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.52e-05/0.3999, allocations: 0 / 0.5672 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.4, allocations: 4 kB / 0.5672 GB, free: 13.62 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.000117/0.4001, allocations: 131.5 kB / 0.5674 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.048e-05/0.4001, allocations: 4 kB / 0.5674 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.421e-05/0.4001, allocations: 10.94 kB / 0.5674 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.852e-06/0.4001, allocations: 7.969 kB / 0.5674 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4001, allocations: 0 / 0.5674 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.4001, allocations: 4 kB / 0.5674 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.603e-05/0.4002, allocations: 97.27 kB / 0.5675 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.4002, allocations: 4 kB / 0.5675 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.4002, allocations: 7.938 kB / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.4002, allocations: 0 / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.4002, allocations: 0 / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.4002, allocations: 3.938 kB / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4002, allocations: 0 / 0.5675 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001533/0.4004, allocations: 120.5 kB / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.729e-06/0.4004, allocations: 0 / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.4004, allocations: 4 kB / 0.5676 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.098e-05/0.4004, allocations: 7.969 kB / 0.5676 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.4004, allocations: 7.969 kB / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.4004, allocations: 0 / 0.5676 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.654e-05/0.4005, allocations: 79.28 kB / 0.5677 GB, free: 13.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4005, allocations: 0 / 0.5677 GB, free: 13.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005212/0.401, allocations: 155.4 kB / 0.5678 GB, free: 12.91 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.0008698/0.4019, allocations: 354.3 kB / 0.5682 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.402, allocations: 114.7 kB / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.402, allocations: 0 / 0.5683 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.269e-05/0.4021, allocations: 89.05 kB / 0.5684 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.4022, allocations: 4 kB / 0.5684 GB, free: 12.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002204/0.4024, allocations: 110.7 kB / 0.5685 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.985e-05/0.4025, allocations: 55.34 kB / 0.5685 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.312e-06/0.4025, allocations: 4 kB / 0.5685 GB, free: 12.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.4025, allocations: 11.56 kB / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4025, allocations: 0 / 0.5686 GB, free: 12.09 MB / 414.1 MB Notification: Performance of Templates: time 0.007997/0.4105, allocations: 3.597 MB / 0.5721 GB, free: 8.488 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_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_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.54519008519128]