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.001352/0.001352, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001527/0.001527, allocations: 211.5 kB / 24.48 MB, free: 3.938 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.47/1.47, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.2346/0.2346, allocations: 44.93 MB / 359.6 MB, free: 6.031 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.002486/0.002486, allocations: 71.89 kB / 0.4943 GB, free: 10.01 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.387, allocations: 65.46 MB / 0.5582 GB, free: 7.445 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002413/0.3894, allocations: 0.5087 MB / 0.5587 GB, free: 6.934 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004266/0.3937, allocations: 2.237 MB / 0.5609 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.3937, allocations: 0 / 0.5609 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.103e-05/0.3937, allocations: 0 / 0.5609 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.444e-06/0.3937, allocations: 0 / 0.5609 GB, free: 4.676 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.002269/0.396, allocations: 0.5842 MB / 0.5614 GB, free: 4.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.584e-05/0.3961, allocations: 7.938 kB / 0.5614 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.229e-05/0.3961, allocations: 0 / 0.5614 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.905e-05/0.3962, allocations: 0 / 0.5614 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.212e-05/0.3962, allocations: 0 / 0.5614 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-06/0.3962, allocations: 0 / 0.5614 GB, free: 4.082 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.3978, allocations: 0.6784 MB / 0.5621 GB, free: 3.402 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.231e-05/0.3978, allocations: 4 kB / 0.5621 GB, free: 3.398 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.52e-05/0.3978, allocations: 4 kB / 0.5621 GB, free: 3.395 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008719/0.3987, allocations: 445.3 kB / 0.5625 GB, free: 2.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.3987, allocations: 0 / 0.5625 GB, free: 2.965 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3987, allocations: 0 / 0.5625 GB, free: 2.965 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.3987, allocations: 0 / 0.5625 GB, free: 2.965 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.0005054/0.3992, allocations: 368.8 kB / 0.5629 GB, free: 2.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3992, allocations: 16.02 kB / 0.5629 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.3993, allocations: 4.938 kB / 0.5629 GB, free: 2.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.3994, allocations: 106.5 kB / 0.563 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.3994, allocations: 384 / 0.563 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.3994, allocations: 384 / 0.563 GB, free: 2.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.3995, allocations: 59.72 kB / 0.5631 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3995, allocations: 0 / 0.5631 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.3995, allocations: 0 / 0.5631 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.3995, allocations: 0 / 0.5631 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.87e-05/0.3996, allocations: 29.7 kB / 0.5631 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.3997, allocations: 101.3 kB / 0.5632 GB, free: 2.188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.27e-05/0.3998, allocations: 52.25 kB / 0.5632 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.162e-05/0.3998, allocations: 30.56 kB / 0.5633 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.3998, allocations: 0 / 0.5633 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/0.3999, allocations: 60.33 kB / 0.5633 GB, free: 2.008 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.91e-07/0.3999, allocations: 0 / 0.5633 GB, free: 2.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002287/0.4001, allocations: 122.7 kB / 0.5634 GB, free: 1.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.4002, allocations: 77.11 kB / 0.5635 GB, free: 1.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.94e-05/0.4002, allocations: 93.81 kB / 0.5636 GB, free: 1.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2e-05/0.4003, allocations: 25.7 kB / 0.5636 GB, free: 1.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.431e-05/0.4003, allocations: 88.27 kB / 0.5637 GB, free: 1.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.4003, allocations: 4 kB / 0.5637 GB, free: 1.543 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.4004, allocations: 17.66 kB / 0.5637 GB, free: 1.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.4005, allocations: 318.8 kB / 0.564 GB, free: 1.199 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.507e-05/0.4005, allocations: 25.7 kB / 0.5641 GB, free: 1.168 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.012e-05/0.4006, allocations: 25.7 kB / 0.5641 GB, free: 1.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.88e-05/0.4006, allocations: 60.27 kB / 0.5641 GB, free: 1.062 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4006, allocations: 0 / 0.5641 GB, free: 1.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.586e-05/0.4007, allocations: 93.09 kB / 0.5642 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/0.4008, allocations: 40.45 kB / 0.5643 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.4008, allocations: 4.094 kB / 0.5643 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.4008, allocations: 3.938 kB / 0.5643 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.4008, allocations: 0 / 0.5643 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.4008, allocations: 0 / 0.5643 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.357e-05/0.4008, allocations: 3.938 kB / 0.5643 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-06/0.4008, allocations: 3.938 kB / 0.5643 GB, free: 0.8945 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.0001151/0.4009, allocations: 139.5 kB / 0.5644 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.4009, allocations: 0 / 0.5644 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.808e-05/0.401, allocations: 14.94 kB / 0.5644 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.401, allocations: 4 kB / 0.5644 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.401, allocations: 4 kB / 0.5644 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.401, allocations: 0 / 0.5644 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.603e-05/0.4011, allocations: 97.31 kB / 0.5645 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.4011, allocations: 0 / 0.5645 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.51e-07/0.4011, allocations: 0 / 0.5645 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4011, allocations: 4 kB / 0.5645 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.4011, allocations: 0 / 0.5645 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4011, allocations: 3.938 kB / 0.5645 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.4011, allocations: 3.984 kB / 0.5645 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.4012, allocations: 116.5 kB / 0.5647 GB, free: 448 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.345e-06/0.4012, allocations: 12 kB / 0.5647 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.4013, allocations: 4 kB / 0.5647 GB, free: 432 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.4013, allocations: 3.938 kB / 0.5647 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.21e-05/0.4013, allocations: 3.938 kB / 0.5647 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.4013, allocations: 0 / 0.5647 GB, free: 424 kB / 398.1 MB Notification: Performance of sorting global known variables: time 8.823e-05/0.4014, allocations: 75.28 kB / 0.5648 GB, free: 348 kB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4014, allocations: 0 / 0.5648 GB, free: 348 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004666/0.4018, allocations: 159.4 kB / 0.5649 GB, free: 188 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.0008691/0.4027, allocations: 352.4 kB / 0.5652 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001515/0.4029, allocations: 110.8 kB / 0.5653 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4029, allocations: 3.938 kB / 0.5654 GB, free: 15.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.518e-05/0.4029, allocations: 85.11 kB / 0.5654 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.4031, allocations: 4 kB / 0.5654 GB, free: 15.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002666/0.4033, allocations: 140.4 kB / 0.5656 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.398e-05/0.4034, allocations: 51.48 kB / 0.5656 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.953e-05/0.4034, allocations: 15.44 kB / 0.5656 GB, free: 15.33 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4034, allocations: 3.938 kB / 0.5656 GB, free: 15.33 MB / 414.1 MB Notification: Performance of Templates: time 0.0078/0.4112, allocations: 3.382 MB / 0.5689 GB, free: 11.94 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.910144292749465]