Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.001302/0.001302, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001442/0.001442, allocations: 212.6 kB / 24.51 MB, free: 3.941 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.455/1.455, allocations: 230.6 MB / 258.3 MB, free: 7.758 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.2237/0.2237, allocations: 44.94 MB / 359.6 MB, free: 6.012 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.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",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.00207/0.00207, allocations: 63.91 kB / 0.4938 GB, free: 10.5 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3931, allocations: 65.46 MB / 0.5577 GB, free: 7.305 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002125/0.3952, allocations: 0.5004 MB / 0.5582 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003704/0.3989, allocations: 2 MB / 0.5602 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.594e-05/0.3989, allocations: 0 / 0.5602 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.871e-05/0.399, allocations: 0 / 0.5602 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.965e-06/0.399, allocations: 4 kB / 0.5602 GB, free: 4.98 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001758/0.4007, allocations: 0.5265 MB / 0.5607 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.827e-05/0.4008, allocations: 4 kB / 0.5607 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.353e-05/0.4008, allocations: 7.938 kB / 0.5607 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.864e-05/0.4009, allocations: 0 / 0.5607 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.298e-05/0.4009, allocations: 0 / 0.5607 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.616e-06/0.4009, allocations: 0 / 0.5607 GB, free: 4.445 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.4021, allocations: 0.7018 MB / 0.5614 GB, free: 3.742 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.947e-06/0.4021, allocations: 4 kB / 0.5614 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.4021, allocations: 0 / 0.5614 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006404/0.4028, allocations: 388.9 kB / 0.5617 GB, free: 3.359 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4028, allocations: 4 kB / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4028, allocations: 0 / 0.5618 GB, free: 3.355 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.4028, allocations: 0 / 0.5618 GB, free: 3.355 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.000516/0.4033, allocations: 343.3 kB / 0.5621 GB, free: 2.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4033, allocations: 8.031 kB / 0.5621 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.825e-05/0.4034, allocations: 192 / 0.5621 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.338e-05/0.4034, allocations: 34.7 kB / 0.5621 GB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.736e-05/0.4034, allocations: 4.938 kB / 0.5621 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.759e-05/0.4035, allocations: 102.5 kB / 0.5622 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.4035, allocations: 384 / 0.5622 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.4036, allocations: 384 / 0.5622 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001346/0.4037, allocations: 75.27 kB / 0.5623 GB, free: 2.719 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.4037, allocations: 4 kB / 0.5623 GB, free: 2.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.4037, allocations: 3.938 kB / 0.5623 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.4037, allocations: 0 / 0.5623 GB, free: 2.711 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.82e-05/0.4037, allocations: 29.64 kB / 0.5623 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002714/0.404, allocations: 204 kB / 0.5625 GB, free: 2.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.919e-05/0.4041, allocations: 52.25 kB / 0.5626 GB, free: 2.367 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.05e-05/0.4041, allocations: 34.62 kB / 0.5626 GB, free: 2.324 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.357e-06/0.4041, allocations: 4 kB / 0.5626 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.4042, allocations: 64.25 kB / 0.5627 GB, free: 2.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.31e-07/0.4042, allocations: 0 / 0.5627 GB, free: 2.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002569/0.4045, allocations: 118.8 kB / 0.5628 GB, free: 2.102 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.949e-05/0.4045, allocations: 81.11 kB / 0.5629 GB, free: 2.004 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.099e-05/0.4046, allocations: 93.84 kB / 0.563 GB, free: 1.902 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.4046, allocations: 25.7 kB / 0.563 GB, free: 1.871 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.4046, allocations: 80.14 kB / 0.5631 GB, free: 1.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.4046, allocations: 3.938 kB / 0.5631 GB, free: 1.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/0.4047, allocations: 17.72 kB / 0.5631 GB, free: 1.762 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4048, allocations: 310.8 kB / 0.5634 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.4049, allocations: 33.83 kB / 0.5634 GB, free: 1.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.338e-05/0.4049, allocations: 29.7 kB / 0.5634 GB, free: 1.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.442e-05/0.405, allocations: 72.19 kB / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.405, allocations: 0 / 0.5635 GB, free: 1.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001067/0.4051, allocations: 93.06 kB / 0.5636 GB, free: 1.18 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.486e-05/0.4051, allocations: 37.69 kB / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.4051, allocations: 0 / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.4051, allocations: 0 / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.598e-05/0.4051, allocations: 0 / 0.5636 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.4051, allocations: 4.031 kB / 0.5636 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.877e-05/0.4052, allocations: 8 kB / 0.5636 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.813e-06/0.4052, allocations: 0 / 0.5636 GB, free: 1.125 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.0001143/0.4053, allocations: 139.5 kB / 0.5638 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.4053, allocations: 0 / 0.5638 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.772e-05/0.4053, allocations: 3.156 kB / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.4053, allocations: 0 / 0.5638 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.4053, allocations: 4 kB / 0.5638 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.4053, allocations: 3.984 kB / 0.5638 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002943/0.4056, allocations: 297.1 kB / 0.5641 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4056, allocations: 3.938 kB / 0.5641 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-06/0.4056, allocations: 4.031 kB / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.4056, allocations: 0 / 0.5641 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.4056, allocations: 4 kB / 0.5641 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.4056, allocations: 3.938 kB / 0.5641 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4056, allocations: 0 / 0.5641 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.4058, allocations: 202.9 kB / 0.5643 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.498e-06/0.4058, allocations: 0 / 0.5643 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.4058, allocations: 3.938 kB / 0.5643 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.993e-05/0.4059, allocations: 4 kB / 0.5643 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.887e-05/0.4059, allocations: 3.984 kB / 0.5643 GB, free: 360 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.4059, allocations: 4.031 kB / 0.5643 GB, free: 356 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.142e-05/0.406, allocations: 79.22 kB / 0.5644 GB, free: 276 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.406, allocations: 0 / 0.5644 GB, free: 276 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004537/0.4064, allocations: 135.5 kB / 0.5645 GB, free: 140 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.001268/0.4077, allocations: 0.9617 MB / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001562/0.4078, allocations: 118.8 kB / 0.5655 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4078, allocations: 3.938 kB / 0.5656 GB, free: 14.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.868e-05/0.4079, allocations: 85.11 kB / 0.5656 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.4081, allocations: 2.5 kB / 0.5656 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.4094, allocations: 1.336 MB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.64e-05/0.4094, allocations: 55.36 kB / 0.567 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.065e-05/0.4094, allocations: 192 / 0.567 GB, free: 13.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.449e-05/0.4095, allocations: 15.44 kB / 0.567 GB, free: 13.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4095, allocations: 0 / 0.567 GB, free: 13.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02724/0.4367, allocations: 4.743 MB / 0.5716 GB, free: 8.746 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.61, allocations: 7.031 kB / 0.5716 GB, free: 8.742 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.599591783015057]