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.001405/0.001405, allocations: 104.3 kB / 19.7 MB, free: 2.059 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.002019/0.002019, allocations: 212.1 kB / 22.99 MB, free: 4.879 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.543/1.543, allocations: 207.7 MB / 233.8 MB, free: 9.785 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.2476/0.2476, 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.002715/0.002715, allocations: 73.61 kB / 467.5 MB, free: 4.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.148, allocations: 61.05 MB / 0.5162 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002424/0.1505, allocations: 0.5065 MB / 0.5166 GB, free: 6.664 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004542/0.155, allocations: 2.221 MB / 0.5188 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.818e-05/0.155, allocations: 0 / 0.5188 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.84e-05/0.155, allocations: 0 / 0.5188 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.605e-06/0.155, allocations: 0 / 0.5188 GB, free: 4.418 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002121/0.1572, allocations: 0.5726 MB / 0.5194 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.724e-05/0.1572, allocations: 7.984 kB / 0.5194 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.11e-05/0.1573, allocations: 0 / 0.5194 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.111e-05/0.1573, allocations: 4 kB / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.092e-05/0.1573, allocations: 0 / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-06/0.1573, allocations: 0 / 0.5194 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.159, allocations: 0.6667 MB / 0.52 GB, free: 3.164 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.19e-05/0.159, allocations: 3.938 kB / 0.52 GB, free: 3.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.159, allocations: 4 kB / 0.52 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001159/0.1602, allocations: 431.2 kB / 0.5205 GB, free: 2.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1602, allocations: 4 kB / 0.5205 GB, free: 2.73 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1602, allocations: 0 / 0.5205 GB, free: 2.73 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1602, allocations: 0 / 0.5205 GB, free: 2.73 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.0007087/0.1609, allocations: 367 kB / 0.5208 GB, free: 2.336 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.161, allocations: 8.031 kB / 0.5208 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.139e-05/0.161, allocations: 38.75 kB / 0.5209 GB, free: 2.281 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.1611, allocations: 8.938 kB / 0.5209 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.1612, allocations: 106.5 kB / 0.521 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.1612, allocations: 384 / 0.521 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.1612, allocations: 4.375 kB / 0.521 GB, free: 2.141 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001331/0.1613, allocations: 63.52 kB / 0.521 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1613, allocations: 0 / 0.521 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.1614, allocations: 0 / 0.521 GB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.942e-06/0.1614, allocations: 3.938 kB / 0.521 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.749e-05/0.1614, allocations: 33.7 kB / 0.5211 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002995/0.1617, allocations: 200 kB / 0.5213 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.355e-05/0.1618, allocations: 56.22 kB / 0.5213 GB, free: 1.715 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.679e-05/0.1618, allocations: 38.61 kB / 0.5213 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.1619, allocations: 0 / 0.5213 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.113e-05/0.1619, allocations: 60.27 kB / 0.5214 GB, free: 1.594 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.1619, allocations: 0 / 0.5214 GB, free: 1.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002798/0.1622, allocations: 126.7 kB / 0.5215 GB, free: 1.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.798e-05/0.1623, allocations: 89.05 kB / 0.5216 GB, free: 1.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.543e-05/0.1623, allocations: 93.84 kB / 0.5217 GB, free: 1.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.1624, allocations: 25.7 kB / 0.5217 GB, free: 1.207 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.097e-05/0.1624, allocations: 84.27 kB / 0.5218 GB, free: 1.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.1624, allocations: 7.953 kB / 0.5218 GB, free: 1.113 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.1625, allocations: 9.719 kB / 0.5218 GB, free: 1.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1626, allocations: 318.8 kB / 0.5221 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.043e-05/0.1627, allocations: 25.7 kB / 0.5221 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.854e-05/0.1627, allocations: 29.7 kB / 0.5222 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.298e-05/0.1628, allocations: 68.25 kB / 0.5222 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.1628, allocations: 3.938 kB / 0.5222 GB, free: 0.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001175/0.1629, allocations: 93.05 kB / 0.5223 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.201e-05/0.163, allocations: 41.78 kB / 0.5224 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.163, allocations: 0 / 0.5224 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.163, allocations: 0 / 0.5224 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.04e-05/0.163, allocations: 4 kB / 0.5224 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.163, allocations: 0 / 0.5224 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.79e-05/0.163, allocations: 0 / 0.5224 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.163, allocations: 0 / 0.5224 GB, free: 476 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.0001224/0.1632, allocations: 139.5 kB / 0.5225 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.54e-05/0.1632, allocations: 0 / 0.5225 GB, free: 320 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.936e-05/0.1632, allocations: 3.156 kB / 0.5225 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.1632, allocations: 0 / 0.5225 GB, free: 316 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.1632, allocations: 8 kB / 0.5225 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1632, allocations: 3.984 kB / 0.5225 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003893/0.1636, allocations: 301 kB / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1636, allocations: 0 / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.529e-06/0.1636, allocations: 0 / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1636, allocations: 0 / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1636, allocations: 0 / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1636, allocations: 0 / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1636, allocations: 0 / 0.5228 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002089/0.1638, allocations: 198.9 kB / 0.523 GB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.586e-06/0.1638, allocations: 11.94 kB / 0.523 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.1639, allocations: 4 kB / 0.523 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.384e-05/0.1639, allocations: 4 kB / 0.523 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.228e-05/0.1639, allocations: 7.922 kB / 0.523 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.1639, allocations: 4 kB / 0.523 GB, free: 15.69 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.143e-05/0.164, allocations: 75.28 kB / 0.5231 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.164, allocations: 0 / 0.5231 GB, free: 15.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000646/0.1646, allocations: 159.3 kB / 0.5233 GB, free: 15.46 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.001344/0.166, allocations: 0.9947 MB / 0.5242 GB, free: 14.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000182/0.1661, allocations: 118.8 kB / 0.5243 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.1661, allocations: 0 / 0.5243 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.3e-05/0.1662, allocations: 85.05 kB / 0.5244 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001994/0.1664, allocations: 4 kB / 0.5244 GB, free: 14.17 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.1677, allocations: 1.352 MB / 0.5257 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.504e-05/0.1678, allocations: 55.34 kB / 0.5258 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.371e-05/0.1678, allocations: 4 kB / 0.5258 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.351e-05/0.1678, allocations: 7.438 kB / 0.5258 GB, free: 12.62 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1678, allocations: 0 / 0.5258 GB, free: 12.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03852/0.2063, allocations: 5.092 MB / 0.5308 GB, free: 7.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.57, allocations: 8.531 kB / 0.5308 GB, free: 7.52 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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: 14.909871975891292]