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.001315/0.001315, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001469/0.001469, allocations: 212.2 kB / 23.73 MB, free: 4.523 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.453/1.453, 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.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.2319/0.2319, allocations: 46.96 MB / 360.9 MB, free: 4.137 MB / 286.1 MB " [Timeout remaining time 180] 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.002706/0.002706, allocations: 63.89 kB / 0.4961 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3298, allocations: 66.03 MB / 0.5606 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00156/0.3314, allocations: 0.5165 MB / 0.5611 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.3346, allocations: 2.233 MB / 0.5633 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.506e-05/0.3347, allocations: 4 kB / 0.5633 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.3347, allocations: 0 / 0.5633 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3347, allocations: 0 / 0.5633 GB, free: 1.496 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.001636/0.3363, allocations: 0.5835 MB / 0.5638 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.366e-05/0.3364, allocations: 3.984 kB / 0.5638 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.952e-05/0.3364, allocations: 0 / 0.5638 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.622e-05/0.3364, allocations: 4 kB / 0.5638 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.605e-05/0.3364, allocations: 7.938 kB / 0.5638 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.35e-06/0.3364, allocations: 0 / 0.5638 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.3376, allocations: 0.7292 MB / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.095e-06/0.3376, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.733e-05/0.3376, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006459/0.3382, allocations: 448.7 kB / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3382, allocations: 0 / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3382, allocations: 0 / 0.565 GB, free: 15.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.3383, allocations: 0 / 0.565 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.0004383/0.3387, allocations: 359.1 kB / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.3387, allocations: 12.03 kB / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.604e-05/0.3388, allocations: 38.69 kB / 0.5654 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.305e-05/0.3388, allocations: 0.9375 kB / 0.5654 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.343e-05/0.3389, allocations: 118.4 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.214e-06/0.3389, allocations: 384 / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.3389, allocations: 4.375 kB / 0.5655 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001059/0.339, allocations: 59.53 kB / 0.5656 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.339, allocations: 3.938 kB / 0.5656 GB, free: 15.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-06/0.3391, allocations: 3.984 kB / 0.5656 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.3391, allocations: 0 / 0.5656 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.204e-05/0.3391, allocations: 29.7 kB / 0.5656 GB, free: 15.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002242/0.3393, allocations: 200 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.298e-05/0.3394, allocations: 56.23 kB / 0.5658 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.676e-05/0.3394, allocations: 34.62 kB / 0.5659 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.175e-05/0.3394, allocations: 8 kB / 0.5659 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.3395, allocations: 56.27 kB / 0.5659 GB, free: 14.6 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3395, allocations: 0 / 0.5659 GB, free: 14.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.00023/0.3397, allocations: 126.7 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3398, allocations: 81.11 kB / 0.5661 GB, free: 14.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.702e-05/0.3398, allocations: 89.86 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.3398, allocations: 29.7 kB / 0.5662 GB, free: 14.22 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.3399, allocations: 80.14 kB / 0.5663 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.25e-05/0.3399, allocations: 0 / 0.5663 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.3399, allocations: 17.7 kB / 0.5663 GB, free: 14.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.34, allocations: 315 kB / 0.5666 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.9e-05/0.3401, allocations: 33.7 kB / 0.5667 GB, free: 13.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.883e-05/0.3401, allocations: 25.7 kB / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.852e-05/0.3402, allocations: 64.27 kB / 0.5668 GB, free: 13.65 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3402, allocations: 3.938 kB / 0.5668 GB, free: 13.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.917e-05/0.3403, allocations: 97.03 kB / 0.5669 GB, free: 13.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.3403, allocations: 33.7 kB / 0.5669 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.3403, allocations: 0 / 0.5669 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3403, allocations: 0 / 0.5669 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.517e-05/0.3403, allocations: 4.094 kB / 0.5669 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.3403, allocations: 4 kB / 0.5669 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.3403, allocations: 7.938 kB / 0.5669 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.3404, allocations: 7.984 kB / 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.0001015/0.3405, allocations: 139.5 kB / 0.567 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.3405, allocations: 4 kB / 0.567 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.879e-05/0.3405, allocations: 3.156 kB / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.3405, allocations: 0 / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3405, allocations: 0 / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3405, allocations: 0 / 0.567 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.3408, allocations: 312.9 kB / 0.5673 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3408, allocations: 0 / 0.5673 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.737e-06/0.3408, allocations: 3.938 kB / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.3408, allocations: 0 / 0.5673 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.3408, allocations: 8 kB / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.3408, allocations: 0 / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3408, allocations: 0 / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000148/0.341, allocations: 194.9 kB / 0.5675 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.091e-05/0.341, allocations: 7.938 kB / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.341, allocations: 0 / 0.5675 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.449e-05/0.341, allocations: 4 kB / 0.5676 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.3411, allocations: 4.062 kB / 0.5676 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.3411, allocations: 0 / 0.5676 GB, free: 12.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.265e-05/0.3411, allocations: 79.28 kB / 0.5676 GB, free: 12.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3411, allocations: 0 / 0.5676 GB, free: 12.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005014/0.3416, allocations: 171.3 kB / 0.5678 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.001258/0.3429, allocations: 0.9985 MB / 0.5688 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.343, allocations: 118.8 kB / 0.5689 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.343, allocations: 0 / 0.5689 GB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.375e-05/0.3431, allocations: 85.05 kB / 0.569 GB, free: 11.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.3433, allocations: 7.938 kB / 0.569 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.3445, allocations: 1.344 MB / 0.5703 GB, free: 9.699 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.301e-05/0.3445, allocations: 59.34 kB / 0.5703 GB, free: 9.621 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.128e-05/0.3445, allocations: 4.188 kB / 0.5703 GB, free: 9.617 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.365e-05/0.3445, allocations: 11.44 kB / 0.5704 GB, free: 9.605 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3445, allocations: 0 / 0.5704 GB, free: 9.605 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03166/0.3762, allocations: 5.205 MB / 0.5754 GB, free: 4.539 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.28, allocations: 10.23 kB / 0.5754 GB, free: 4.531 MB / 414.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.184563586983131]