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.001439/0.001439, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.001407/0.001407, allocations: 214.4 kB / 23.74 MB, free: 4.656 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.2399/0.2399, allocations: 44.91 MB / 358.8 MB, free: 6.254 MB / 286.1 MB " [Timeout remaining time 180] 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [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.002474/0.002474, allocations: 67.91 kB / 0.4931 GB, free: 10.69 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3577, allocations: 65.48 MB / 0.557 GB, free: 7.504 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001751/0.3595, allocations: 0.4891 MB / 0.5575 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00384/0.3633, allocations: 2.413 MB / 0.5599 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.965e-05/0.3634, allocations: 4 kB / 0.5599 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.417e-05/0.3634, allocations: 0 / 0.5599 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.322e-06/0.3634, allocations: 0 / 0.5599 GB, free: 4.832 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.001774/0.3651, allocations: 0.5803 MB / 0.5604 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.944e-05/0.3652, allocations: 0 / 0.5604 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.252e-05/0.3653, allocations: 7.938 kB / 0.5604 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.3653, allocations: 4 kB / 0.5604 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.7e-05/0.3653, allocations: 0 / 0.5604 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.3653, allocations: 0 / 0.5604 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001412/0.3667, allocations: 0.8032 MB / 0.5612 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.628e-06/0.3667, allocations: 0 / 0.5612 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.022e-05/0.3667, allocations: 0 / 0.5612 GB, free: 3.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007176/0.3675, allocations: 468.7 kB / 0.5617 GB, free: 2.977 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3675, allocations: 3.984 kB / 0.5617 GB, free: 2.973 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3675, allocations: 0 / 0.5617 GB, free: 2.973 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3675, allocations: 0 / 0.5617 GB, free: 2.973 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.0004914/0.368, allocations: 363 kB / 0.562 GB, free: 2.582 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.368, allocations: 15.97 kB / 0.562 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.134e-05/0.3681, allocations: 34.7 kB / 0.5621 GB, free: 2.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.977e-05/0.3681, allocations: 8.875 kB / 0.5621 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.973e-05/0.3682, allocations: 110.5 kB / 0.5622 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.3682, allocations: 4.375 kB / 0.5622 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.3682, allocations: 4.375 kB / 0.5622 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.726e-05/0.3683, allocations: 33.83 kB / 0.5622 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3683, allocations: 0 / 0.5622 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-06/0.3683, allocations: 0 / 0.5622 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3683, allocations: 0 / 0.5622 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.159e-05/0.3684, allocations: 4 kB / 0.5622 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003596/0.3687, allocations: 211.9 kB / 0.5624 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.842e-05/0.3688, allocations: 18.58 kB / 0.5624 GB, free: 2.055 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.4e-05/0.3688, allocations: 16.91 kB / 0.5625 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.542e-06/0.3688, allocations: 0 / 0.5625 GB, free: 2.035 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.3689, allocations: 56.27 kB / 0.5625 GB, free: 1.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3689, allocations: 0 / 0.5625 GB, free: 1.965 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002195/0.3691, allocations: 75.34 kB / 0.5626 GB, free: 1.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.3692, allocations: 81.09 kB / 0.5627 GB, free: 1.781 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.956e-05/0.3692, allocations: 89.86 kB / 0.5628 GB, free: 1.684 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.3692, allocations: 29.7 kB / 0.5628 GB, free: 1.648 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.3693, allocations: 80.14 kB / 0.5629 GB, free: 1.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.3693, allocations: 0 / 0.5629 GB, free: 1.566 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.792e-05/0.3693, allocations: 17.72 kB / 0.5629 GB, free: 1.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.3695, allocations: 310.8 kB / 0.5632 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.3695, allocations: 4.125 kB / 0.5632 GB, free: 1.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.398e-06/0.3695, allocations: 4 kB / 0.5632 GB, free: 1.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.631e-05/0.3695, allocations: 68.25 kB / 0.5632 GB, free: 1.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3696, allocations: 3.938 kB / 0.5632 GB, free: 1.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001621/0.3697, allocations: 67.34 kB / 0.5633 GB, free: 1.059 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.779e-05/0.3698, allocations: 32.52 kB / 0.5633 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3698, allocations: 3.984 kB / 0.5633 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.3698, allocations: 0 / 0.5633 GB, free: 1.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.546e-05/0.3698, allocations: 4.094 kB / 0.5633 GB, free: 1.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.3698, allocations: 4 kB / 0.5634 GB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.934e-05/0.3698, allocations: 7.953 kB / 0.5634 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.3698, allocations: 0 / 0.5634 GB, free: 1.004 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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.0001067/0.3699, allocations: 147.4 kB / 0.5635 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.199e-05/0.37, allocations: 3.938 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.967e-05/0.37, allocations: 3.156 kB / 0.5635 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.37, allocations: 0 / 0.5635 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.37, allocations: 0 / 0.5635 GB, free: 0.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.644e-06/0.37, allocations: 7.938 kB / 0.5635 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/0.3702, allocations: 279.3 kB / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3702, allocations: 0 / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.326e-06/0.3702, allocations: 0 / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.3702, allocations: 0 / 0.5638 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.926e-06/0.3703, allocations: 4 kB / 0.5638 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.153e-06/0.3703, allocations: 0 / 0.5638 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3703, allocations: 0 / 0.5638 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001461/0.3704, allocations: 173.2 kB / 0.5639 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.169e-05/0.3704, allocations: 11.94 kB / 0.564 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.3704, allocations: 0 / 0.564 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.021e-05/0.3705, allocations: 0 / 0.564 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.672e-05/0.3705, allocations: 7.922 kB / 0.564 GB, free: 288 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.3705, allocations: 4 kB / 0.564 GB, free: 284 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.3705, allocations: 83.3 kB / 0.5641 GB, free: 200 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3705, allocations: 0 / 0.5641 GB, free: 200 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005148/0.371, allocations: 167.3 kB / 0.5642 GB, free: 32 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001167/0.3722, allocations: 0.9349 MB / 0.5651 GB, free: 15.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.3723, allocations: 71.38 kB / 0.5652 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.3723, allocations: 4 kB / 0.5652 GB, free: 14.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.567e-05/0.3724, allocations: 59.39 kB / 0.5653 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001963/0.3726, allocations: 6.688 kB / 0.5653 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.3737, allocations: 1.215 MB / 0.5664 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004478/0.3742, allocations: 0.6768 MB / 0.5671 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.435e-05/0.3742, allocations: 3.938 kB / 0.5671 GB, free: 12.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.23e-05/0.3742, allocations: 15.44 kB / 0.5671 GB, free: 12.88 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3742, allocations: 4 kB / 0.5671 GB, free: 12.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03489/0.4091, allocations: 4.738 MB / 0.5718 GB, free: 8.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.75, allocations: 8.062 kB / 0.5718 GB, free: 8.273 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] 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: 14.772578470176086]