Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001802/0.001802, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.002325/0.002325, allocations: 216.9 kB / 22.99 MB, free: 4.973 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 207.7 MB / 233.8 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2322/0.2322, allocations: 44.27 MB / 330.3 MB, free: 9.305 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.002627/0.002627, allocations: 71.89 kB / 467.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1468, allocations: 61.04 MB / 0.5162 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002181/0.1489, allocations: 0.5027 MB / 0.5166 GB, free: 6.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004293/0.1532, allocations: 2.221 MB / 0.5188 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.938e-05/0.1533, allocations: 0 / 0.5188 GB, free: 4.422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.753e-05/0.1533, allocations: 8 kB / 0.5188 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.081e-06/0.1533, allocations: 0 / 0.5188 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002315/0.1556, allocations: 0.5726 MB / 0.5194 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.921e-05/0.1557, allocations: 3.984 kB / 0.5194 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.491e-05/0.1557, allocations: 4 kB / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.885e-05/0.1557, allocations: 0 / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.881e-05/0.1558, allocations: 0 / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.364e-06/0.1558, allocations: 3.938 kB / 0.5194 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.1574, allocations: 0.6706 MB / 0.52 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.193e-05/0.1574, allocations: 0 / 0.52 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.41e-05/0.1574, allocations: 7.938 kB / 0.5201 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.1585, allocations: 423.2 kB / 0.5205 GB, free: 2.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.1585, allocations: 8 kB / 0.5205 GB, free: 2.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.1585, allocations: 0 / 0.5205 GB, free: 2.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.1585, allocations: 0 / 0.5205 GB, free: 2.727 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.0006743/0.1592, allocations: 371 kB / 0.5208 GB, free: 2.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1593, allocations: 12.03 kB / 0.5208 GB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.1593, allocations: 34.69 kB / 0.5209 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.394e-05/0.1594, allocations: 4.938 kB / 0.5209 GB, free: 2.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.1595, allocations: 102.5 kB / 0.521 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.1595, allocations: 4.375 kB / 0.521 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.275e-06/0.1595, allocations: 384 / 0.521 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.1596, allocations: 67.52 kB / 0.521 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.1596, allocations: 4 kB / 0.521 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.306e-06/0.1597, allocations: 0 / 0.521 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.329e-06/0.1597, allocations: 0 / 0.521 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.732e-05/0.1597, allocations: 29.7 kB / 0.5211 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003236/0.16, allocations: 203.9 kB / 0.5213 GB, free: 1.781 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.658e-05/0.1601, allocations: 52.3 kB / 0.5213 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.577e-05/0.1602, allocations: 34.62 kB / 0.5213 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.1602, allocations: 0 / 0.5213 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.306e-05/0.1602, allocations: 68.25 kB / 0.5214 GB, free: 1.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.002e-06/0.1602, allocations: 0 / 0.5214 GB, free: 1.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002974/0.1605, allocations: 126.7 kB / 0.5215 GB, free: 1.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/0.1606, allocations: 81.11 kB / 0.5216 GB, free: 1.344 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.926e-05/0.1607, allocations: 93.86 kB / 0.5217 GB, free: 1.242 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.1607, allocations: 25.7 kB / 0.5217 GB, free: 1.211 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.472e-05/0.1608, allocations: 84.14 kB / 0.5218 GB, free: 1.125 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.1608, allocations: 3.953 kB / 0.5218 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.1608, allocations: 21.64 kB / 0.5218 GB, free: 1.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.161, allocations: 314.8 kB / 0.5221 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.213e-05/0.1611, allocations: 25.83 kB / 0.5221 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.893e-05/0.1611, allocations: 33.7 kB / 0.5222 GB, free: 0.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.158e-05/0.1612, allocations: 68.25 kB / 0.5222 GB, free: 0.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.1612, allocations: 7.938 kB / 0.5223 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001523/0.1613, allocations: 89.05 kB / 0.5223 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.437e-05/0.1614, allocations: 29.7 kB / 0.5224 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1614, allocations: 4 kB / 0.5224 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.1614, allocations: 0 / 0.5224 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.622e-05/0.1614, allocations: 7.922 kB / 0.5224 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.1615, allocations: 4.078 kB / 0.5224 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.952e-05/0.1615, allocations: 8 kB / 0.5224 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.1615, allocations: 0 / 0.5224 GB, free: 464 kB / 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.0001632/0.1617, allocations: 139.5 kB / 0.5225 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.1617, allocations: 0 / 0.5225 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.2e-05/0.1617, allocations: 3.156 kB / 0.5225 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.1617, allocations: 4 kB / 0.5225 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1617, allocations: 0 / 0.5225 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1617, allocations: 0 / 0.5225 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004045/0.1621, allocations: 305 kB / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1621, allocations: 0 / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-06/0.1621, allocations: 4.031 kB / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1622, allocations: 0 / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.1622, allocations: 0 / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.1622, allocations: 0 / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1622, allocations: 4 kB / 0.5228 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001987/0.1624, allocations: 190.9 kB / 0.523 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.12e-05/0.1624, allocations: 7.938 kB / 0.523 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.1624, allocations: 0 / 0.523 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.68e-05/0.1624, allocations: 4 kB / 0.523 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.82e-05/0.1625, allocations: 8 kB / 0.523 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.1625, allocations: 4.031 kB / 0.523 GB, free: 15.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.449e-05/0.1625, allocations: 79.22 kB / 0.5231 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1625, allocations: 0 / 0.5231 GB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006513/0.1632, allocations: 163.3 kB / 0.5233 GB, free: 15.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.001656/0.1648, allocations: 0.9869 MB / 0.5242 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001895/0.165, allocations: 122.8 kB / 0.5243 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.165, allocations: 0 / 0.5243 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.503e-05/0.1651, allocations: 89.05 kB / 0.5244 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.1653, allocations: 3.938 kB / 0.5244 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.1667, allocations: 1.348 MB / 0.5257 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.904e-05/0.1668, allocations: 55.36 kB / 0.5258 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.121e-05/0.1668, allocations: 0 / 0.5258 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.1668, allocations: 11.61 kB / 0.5258 GB, free: 12.61 MB / 414.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1668, allocations: 4 kB / 0.5258 GB, free: 12.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03731/0.2041, allocations: 5.076 MB / 0.5308 GB, free: 7.531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.77, allocations: 12.62 kB / 0.5308 GB, free: 7.523 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 15.203239777125418]