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.001757/0.001757, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001887/0.001887, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.574/1.574, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2434/0.2434, allocations: 46.92 MB / 357.1 MB, free: 10.4 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.001873/0.001873, allocations: 67.91 kB / 0.4909 GB, free: 8.043 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1545, allocations: 65.99 MB / 0.5554 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001771/0.1562, allocations: 0.4991 MB / 0.5559 GB, free: 5.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003764/0.16, allocations: 2.392 MB / 0.5582 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.058e-05/0.16, allocations: 0 / 0.5582 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.39e-05/0.16, allocations: 0 / 0.5582 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.016e-06/0.16, allocations: 0 / 0.5582 GB, free: 3.016 MB / 414.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.001923/0.162, allocations: 0.5686 MB / 0.5587 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.261e-05/0.162, allocations: 0 / 0.5587 GB, free: 2.445 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.551e-05/0.1621, allocations: 7.938 kB / 0.5588 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.435e-05/0.1621, allocations: 0 / 0.5588 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.59e-05/0.1621, allocations: 0 / 0.5588 GB, free: 2.438 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-06/0.1621, allocations: 3.938 kB / 0.5588 GB, free: 2.434 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.1634, allocations: 0.737 MB / 0.5595 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.518e-06/0.1634, allocations: 0 / 0.5595 GB, free: 1.695 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.1634, allocations: 7.984 kB / 0.5595 GB, free: 1.688 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000693/0.1641, allocations: 450.9 kB / 0.5599 GB, free: 1.246 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1641, allocations: 4 kB / 0.5599 GB, free: 1.242 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1641, allocations: 0 / 0.5599 GB, free: 1.242 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1641, allocations: 0 / 0.5599 GB, free: 1.242 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.0005916/0.1647, allocations: 448.1 kB / 0.5603 GB, free: 0.75 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1647, allocations: 12.03 kB / 0.5604 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.666e-05/0.1648, allocations: 38.64 kB / 0.5604 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.06e-05/0.1648, allocations: 0.9375 kB / 0.5604 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.165, allocations: 164.4 kB / 0.5606 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.165, allocations: 384 / 0.5606 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.165, allocations: 4.375 kB / 0.5606 GB, free: 500 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001108/0.1651, allocations: 33.83 kB / 0.5606 GB, free: 460 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.1651, allocations: 4 kB / 0.5606 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.1651, allocations: 0 / 0.5606 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1651, allocations: 0 / 0.5606 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.596e-05/0.1652, allocations: 4 kB / 0.5606 GB, free: 452 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003034/0.1655, allocations: 232.8 kB / 0.5608 GB, free: 168 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.288e-05/0.1655, allocations: 22.61 kB / 0.5608 GB, free: 136 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.606e-05/0.1656, allocations: 12.91 kB / 0.5609 GB, free: 120 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.861e-06/0.1656, allocations: 4 kB / 0.5609 GB, free: 116 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.985e-05/0.1656, allocations: 60.27 kB / 0.5609 GB, free: 40 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.1656, allocations: 0 / 0.5609 GB, free: 40 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002487/0.1659, allocations: 75.44 kB / 0.561 GB, free: 15.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.1659, allocations: 77.11 kB / 0.5611 GB, free: 15.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.747e-05/0.166, allocations: 89.86 kB / 0.5611 GB, free: 15.76 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.166, allocations: 25.7 kB / 0.5612 GB, free: 15.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.232e-05/0.1661, allocations: 84.27 kB / 0.5613 GB, free: 15.64 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.1661, allocations: 11.94 kB / 0.5613 GB, free: 15.63 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.913e-05/0.1661, allocations: 13.72 kB / 0.5613 GB, free: 15.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1663, allocations: 310.8 kB / 0.5616 GB, free: 15.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.334e-05/0.1663, allocations: 4 kB / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.526e-06/0.1663, allocations: 3.984 kB / 0.5616 GB, free: 15.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.13e-05/0.1663, allocations: 68.27 kB / 0.5616 GB, free: 15.21 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1663, allocations: 3.938 kB / 0.5616 GB, free: 15.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.834e-05/0.1664, allocations: 71.41 kB / 0.5617 GB, free: 15.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.966e-05/0.1665, allocations: 37.69 kB / 0.5618 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.1665, allocations: 0 / 0.5618 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.1665, allocations: 0 / 0.5618 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.743e-05/0.1665, allocations: 3.938 kB / 0.5618 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1665, allocations: 0 / 0.5618 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.1665, allocations: 3.828 kB / 0.5618 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.1665, allocations: 0 / 0.5618 GB, free: 15.07 MB / 430.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 9.846e-05/0.1666, allocations: 139.5 kB / 0.5619 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.1667, allocations: 4.031 kB / 0.5619 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.863e-05/0.1667, allocations: 11.11 kB / 0.5619 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1667, allocations: 4 kB / 0.5619 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.1667, allocations: 4 kB / 0.5619 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1667, allocations: 3.984 kB / 0.5619 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.167, allocations: 296.2 kB / 0.5622 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.167, allocations: 4 kB / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.517e-06/0.167, allocations: 0 / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.167, allocations: 0 / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.167, allocations: 4.031 kB / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.167, allocations: 0 / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.167, allocations: 0 / 0.5622 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001416/0.1671, allocations: 169.2 kB / 0.5624 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.496e-05/0.1672, allocations: 77.11 kB / 0.5624 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1672, allocations: 0 / 0.5624 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.707e-05/0.1672, allocations: 4 kB / 0.5624 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.1673, allocations: 12.02 kB / 0.5625 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.1673, allocations: 0 / 0.5625 GB, free: 14.24 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.528e-05/0.1673, allocations: 75.28 kB / 0.5625 GB, free: 14.17 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1673, allocations: 3.938 kB / 0.5625 GB, free: 14.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000508/0.1678, allocations: 167.3 kB / 0.5627 GB, free: 14 MB / 430.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.00119/0.169, allocations: 0.9387 MB / 0.5636 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.1691, allocations: 67.39 kB / 0.5637 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1691, allocations: 0 / 0.5637 GB, free: 12.96 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.641e-05/0.1692, allocations: 63.28 kB / 0.5637 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001918/0.1694, allocations: 4 kB / 0.5637 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.1705, allocations: 1.222 MB / 0.5649 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.1708, allocations: 0.6729 MB / 0.5656 GB, free: 10.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.012e-05/0.1708, allocations: 0 / 0.5656 GB, free: 10.87 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.934e-05/0.1708, allocations: 7.438 kB / 0.5656 GB, free: 10.86 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1708, allocations: 0 / 0.5656 GB, free: 10.86 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.1986, allocations: 4.642 MB / 0.5701 GB, free: 6.316 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.148/8.346, allocations: 6.344 kB / 0.5701 GB, free: 6.312 MB / 430.1 MB " [Timeout remaining time 652] (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: 11.536029814000358]