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.001571/0.001571, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002779/0.002779, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.233/0.233, allocations: 44.94 MB / 358.8 MB, free: 6.055 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: "" <> 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.002995/0.002995, allocations: 67.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.3743, allocations: 65.48 MB / 0.557 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001804/0.3761, allocations: 0.4962 MB / 0.5574 GB, free: 6.969 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003828/0.38, allocations: 2.249 MB / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.132e-05/0.38, allocations: 0 / 0.5596 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.657e-05/0.38, allocations: 4 kB / 0.5596 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.503e-06/0.38, allocations: 0 / 0.5596 GB, free: 4.785 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.00165/0.3817, allocations: 0.5801 MB / 0.5602 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.592e-05/0.3817, allocations: 0 / 0.5602 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.181e-05/0.3818, allocations: 0 / 0.5602 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.616e-05/0.3818, allocations: 7.938 kB / 0.5602 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.986e-05/0.3818, allocations: 4 kB / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.701e-06/0.3818, allocations: 0 / 0.5602 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.383, allocations: 0.6745 MB / 0.5609 GB, free: 3.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.138e-05/0.383, allocations: 4 kB / 0.5609 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.134e-05/0.383, allocations: 3.984 kB / 0.5609 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000683/0.3837, allocations: 440.7 kB / 0.5613 GB, free: 3.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3837, allocations: 4 kB / 0.5613 GB, free: 3.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3837, allocations: 0 / 0.5613 GB, free: 3.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.3837, allocations: 0 / 0.5613 GB, free: 3.078 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.0004926/0.3842, allocations: 363.1 kB / 0.5617 GB, free: 2.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3843, allocations: 12.03 kB / 0.5617 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.273e-05/0.3843, allocations: 34.7 kB / 0.5617 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.3844, allocations: 0.9375 kB / 0.5617 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.799e-05/0.3845, allocations: 110.5 kB / 0.5618 GB, free: 2.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.3845, allocations: 4.375 kB / 0.5618 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.3845, allocations: 384 / 0.5618 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001197/0.3846, allocations: 67.45 kB / 0.5619 GB, free: 2.418 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.3846, allocations: 4 kB / 0.5619 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.3846, allocations: 0 / 0.5619 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.3846, allocations: 0 / 0.5619 GB, free: 2.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.756e-05/0.3847, allocations: 33.7 kB / 0.5619 GB, free: 2.375 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002492/0.3849, allocations: 204 kB / 0.5621 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.88e-05/0.385, allocations: 52.25 kB / 0.5622 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.169e-05/0.385, allocations: 42.61 kB / 0.5622 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.738e-06/0.385, allocations: 0 / 0.5622 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/0.3851, allocations: 64.27 kB / 0.5623 GB, free: 1.938 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.193e-06/0.3851, allocations: 3.938 kB / 0.5623 GB, free: 1.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002355/0.3853, allocations: 126.7 kB / 0.5624 GB, free: 1.785 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.3854, allocations: 77.11 kB / 0.5625 GB, free: 1.691 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.263e-05/0.3854, allocations: 89.86 kB / 0.5625 GB, free: 1.594 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.368e-05/0.3855, allocations: 29.7 kB / 0.5626 GB, free: 1.559 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/0.3855, allocations: 80.14 kB / 0.5627 GB, free: 1.477 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.493e-05/0.3855, allocations: 128 / 0.5627 GB, free: 1.477 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.533e-05/0.3855, allocations: 21.72 kB / 0.5627 GB, free: 1.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3857, allocations: 310.8 kB / 0.563 GB, free: 1.137 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.969e-05/0.3857, allocations: 33.69 kB / 0.563 GB, free: 1.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.904e-05/0.3858, allocations: 25.7 kB / 0.563 GB, free: 1.066 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.117e-05/0.3858, allocations: 68.27 kB / 0.5631 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3858, allocations: 3.938 kB / 0.5631 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.704e-05/0.3859, allocations: 97.03 kB / 0.5632 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.808e-05/0.386, allocations: 33.7 kB / 0.5632 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.386, allocations: 0 / 0.5632 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.386, allocations: 4.094 kB / 0.5632 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-05/0.386, allocations: 0 / 0.5632 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.386, allocations: 0 / 0.5632 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.001e-05/0.386, allocations: 3.953 kB / 0.5632 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.386, allocations: 4 kB / 0.5632 GB, free: 0.8164 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.0001063/0.3861, allocations: 135.5 kB / 0.5634 GB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.3862, allocations: 7.984 kB / 0.5634 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.983e-05/0.3862, allocations: 3.156 kB / 0.5634 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.3862, allocations: 0 / 0.5634 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3862, allocations: 0 / 0.5634 GB, free: 0.6523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3862, allocations: 7.938 kB / 0.5634 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.3865, allocations: 301 kB / 0.5637 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3865, allocations: 0 / 0.5637 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-06/0.3865, allocations: 0 / 0.5637 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3865, allocations: 0 / 0.5637 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.104e-06/0.3865, allocations: 0 / 0.5637 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3865, allocations: 4 kB / 0.5637 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3865, allocations: 0 / 0.5637 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001671/0.3867, allocations: 194.9 kB / 0.5639 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.456e-05/0.3867, allocations: 19.91 kB / 0.5639 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.3867, allocations: 4.062 kB / 0.5639 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.049e-05/0.3868, allocations: 4 kB / 0.5639 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.19e-05/0.3868, allocations: 4 kB / 0.5639 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.3868, allocations: 0 / 0.5639 GB, free: 36 kB / 398.1 MB Notification: Performance of sorting global known variables: time 5.766e-05/0.3868, allocations: 79.28 kB / 0.564 GB, free: 15.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3868, allocations: 0 / 0.564 GB, free: 15.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004908/0.3873, allocations: 167.3 kB / 0.5641 GB, free: 15.79 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.0013/0.3886, allocations: 1.006 MB / 0.5651 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.3888, allocations: 114.8 kB / 0.5652 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.3888, allocations: 0 / 0.5652 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.217e-05/0.3889, allocations: 93.03 kB / 0.5653 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.389, allocations: 3.938 kB / 0.5653 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/0.3903, allocations: 1.348 MB / 0.5666 GB, free: 13.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.581e-05/0.3903, allocations: 59.39 kB / 0.5667 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.012e-05/0.3904, allocations: 0 / 0.5667 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.479e-05/0.3904, allocations: 11.44 kB / 0.5667 GB, free: 12.95 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3904, allocations: 0 / 0.5667 GB, free: 12.95 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03222/0.4226, allocations: 5.173 MB / 0.5717 GB, free: 7.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.76, allocations: 11.98 kB / 0.5718 GB, free: 7.898 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.799517718609422]