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.001989/0.001989, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002501/0.002501, allocations: 213.9 kB / 23.73 MB, free: 4.16 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.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2536/0.2536, allocations: 46.97 MB / 360.9 MB, free: 4.113 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002061/0.002061, allocations: 75.89 kB / 0.4961 GB, free: 7.711 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3851, allocations: 66.03 MB / 0.5606 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001833/0.3869, allocations: 0.4957 MB / 0.5611 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003682/0.3906, allocations: 2.249 MB / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.3906, allocations: 0 / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.3906, allocations: 0 / 0.5633 GB, free: 1.438 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.362e-06/0.3906, allocations: 0 / 0.5633 GB, free: 1.438 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.00172/0.3924, allocations: 0.5762 MB / 0.5638 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.876e-05/0.3924, allocations: 0 / 0.5638 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.391e-05/0.3924, allocations: 8 kB / 0.5638 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.574e-05/0.3925, allocations: 0 / 0.5638 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.802e-05/0.3925, allocations: 7.922 kB / 0.5639 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.3925, allocations: 0 / 0.5639 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00129/0.3938, allocations: 0.6706 MB / 0.5645 GB, free: 180 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.289e-05/0.3938, allocations: 3.984 kB / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.725e-05/0.3938, allocations: 4 kB / 0.5645 GB, free: 172 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006853/0.3945, allocations: 444.7 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.3945, allocations: 3.938 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3945, allocations: 0 / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.159e-06/0.3945, allocations: 0 / 0.5649 GB, free: 15.73 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.0004573/0.395, allocations: 367.1 kB / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.395, allocations: 8.031 kB / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.614e-05/0.3951, allocations: 34.7 kB / 0.5653 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.674e-05/0.3951, allocations: 8.938 kB / 0.5653 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.707e-05/0.3952, allocations: 102.5 kB / 0.5654 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.3952, allocations: 4.312 kB / 0.5654 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.423e-06/0.3952, allocations: 384 / 0.5654 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001188/0.3953, allocations: 71.45 kB / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.3953, allocations: 0 / 0.5655 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.3953, allocations: 4 kB / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.3953, allocations: 0 / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.482e-05/0.3954, allocations: 29.64 kB / 0.5655 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002455/0.3956, allocations: 204 kB / 0.5657 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.999e-05/0.3957, allocations: 56.3 kB / 0.5658 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.564e-05/0.3957, allocations: 42.56 kB / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.087e-06/0.3958, allocations: 0 / 0.5658 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.852e-05/0.3958, allocations: 56.27 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.3958, allocations: 0 / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002302/0.396, allocations: 126.8 kB / 0.566 GB, free: 14.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.3961, allocations: 77.11 kB / 0.5661 GB, free: 14.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.583e-05/0.3962, allocations: 93.84 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.3962, allocations: 25.7 kB / 0.5662 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.413e-05/0.3962, allocations: 80.27 kB / 0.5663 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.437e-05/0.3962, allocations: 11.98 kB / 0.5663 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.3962, allocations: 13.72 kB / 0.5663 GB, free: 14.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3964, allocations: 310.8 kB / 0.5666 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.561e-05/0.3964, allocations: 33.64 kB / 0.5666 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.647e-05/0.3964, allocations: 37.7 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.786e-05/0.3965, allocations: 64.25 kB / 0.5667 GB, free: 13.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3965, allocations: 3.938 kB / 0.5667 GB, free: 13.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.804e-05/0.3966, allocations: 93.11 kB / 0.5668 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.3966, allocations: 29.7 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.3966, allocations: 8.078 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.3967, allocations: 0 / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.4e-05/0.3967, allocations: 0 / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.3967, allocations: 4 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.858e-05/0.3967, allocations: 3.953 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.3967, allocations: 0 / 0.5669 GB, free: 13.47 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: 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.0001101/0.3968, allocations: 147.4 kB / 0.567 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.09e-05/0.3968, allocations: 0 / 0.567 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.995e-05/0.3969, allocations: 3.156 kB / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3969, allocations: 0 / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3969, allocations: 4 kB / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.3969, allocations: 0 / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.3972, allocations: 297.1 kB / 0.5673 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3972, allocations: 0 / 0.5673 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.133e-06/0.3972, allocations: 4 kB / 0.5673 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3972, allocations: 7.875 kB / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.3972, allocations: 0 / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3972, allocations: 0 / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3972, allocations: 0 / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.3974, allocations: 202.9 kB / 0.5675 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.688e-06/0.3974, allocations: 12 kB / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.3974, allocations: 4 kB / 0.5675 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.78e-05/0.3975, allocations: 0 / 0.5675 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.866e-05/0.3975, allocations: 3.984 kB / 0.5675 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-06/0.3975, allocations: 0 / 0.5675 GB, free: 12.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.206e-05/0.3976, allocations: 79.28 kB / 0.5676 GB, free: 12.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3976, allocations: 4 kB / 0.5676 GB, free: 12.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000544/0.3981, allocations: 159.3 kB / 0.5677 GB, free: 12.45 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: 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.001321/0.3994, allocations: 1 MB / 0.5687 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.3996, allocations: 122.7 kB / 0.5688 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3996, allocations: 0 / 0.5688 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.181e-05/0.3997, allocations: 81.11 kB / 0.5689 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.3999, allocations: 10.12 kB / 0.5689 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.4012, allocations: 1.352 MB / 0.5702 GB, free: 9.688 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.027e-05/0.4012, allocations: 59.34 kB / 0.5703 GB, free: 9.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.238e-05/0.4012, allocations: 0 / 0.5703 GB, free: 9.609 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.4013, allocations: 7.438 kB / 0.5703 GB, free: 9.602 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4013, allocations: 0 / 0.5703 GB, free: 9.602 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0331/0.4344, allocations: 5.183 MB / 0.5754 GB, free: 4.555 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.88, allocations: 5.219 kB / 0.5754 GB, free: 4.555 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/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: 14.910983953159302]