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.001907/0.001907, allocations: 107.5 kB / 19.69 MB, free: 2.203 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.002422/0.002422, allocations: 226.3 kB / 23.01 MB, free: 5.039 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.637/1.637, allocations: 207.6 MB / 233.8 MB, free: 9.984 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.2383/0.2383, allocations: 44.25 MB / 330.3 MB, free: 9.609 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.002579/0.002579, allocations: 67.91 kB / 467.5 MB, free: 4.535 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1371, allocations: 61.05 MB / 0.5161 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002016/0.1392, allocations: 0.5065 MB / 0.5166 GB, free: 6.836 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004162/0.1433, allocations: 2.384 MB / 0.519 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.892e-05/0.1433, allocations: 0 / 0.519 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.391e-05/0.1434, allocations: 0 / 0.519 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.751e-06/0.1434, allocations: 0 / 0.519 GB, free: 4.426 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.1453, allocations: 0.5726 MB / 0.5195 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.221e-05/0.1453, allocations: 0 / 0.5195 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.881e-05/0.1454, allocations: 7.938 kB / 0.5195 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.509e-05/0.1454, allocations: 4 kB / 0.5195 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.835e-05/0.1454, allocations: 3.984 kB / 0.5195 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.1454, allocations: 0 / 0.5195 GB, free: 3.836 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.1467, allocations: 0.7876 MB / 0.5203 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.975e-06/0.1467, allocations: 4 kB / 0.5203 GB, free: 3.043 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.048e-05/0.1468, allocations: 3.984 kB / 0.5203 GB, free: 3.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.1474, allocations: 459.1 kB / 0.5208 GB, free: 2.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1474, allocations: 0 / 0.5208 GB, free: 2.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1474, allocations: 0 / 0.5208 GB, free: 2.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1474, allocations: 4 kB / 0.5208 GB, free: 2.586 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.0005686/0.148, allocations: 359.1 kB / 0.5211 GB, free: 2.199 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.148, allocations: 8.031 kB / 0.5211 GB, free: 2.191 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.861e-05/0.1481, allocations: 34.75 kB / 0.5211 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.1481, allocations: 4.938 kB / 0.5212 GB, free: 2.145 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.419e-05/0.1482, allocations: 106.5 kB / 0.5213 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1482, allocations: 384 / 0.5213 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.428e-06/0.1483, allocations: 4.375 kB / 0.5213 GB, free: 2.012 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001021/0.1484, allocations: 41.7 kB / 0.5213 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1484, allocations: 4 kB / 0.5213 GB, free: 1.961 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.1484, allocations: 3.938 kB / 0.5213 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1484, allocations: 0 / 0.5213 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.971e-05/0.1484, allocations: 0 / 0.5213 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002607/0.1487, allocations: 208 kB / 0.5215 GB, free: 1.711 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.183e-05/0.1487, allocations: 18.61 kB / 0.5215 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.681e-05/0.1487, allocations: 16.84 kB / 0.5215 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/0.1487, allocations: 0 / 0.5215 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.978e-05/0.1488, allocations: 64.27 kB / 0.5216 GB, free: 1.586 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1488, allocations: 0 / 0.5216 GB, free: 1.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002279/0.149, allocations: 67.41 kB / 0.5217 GB, free: 1.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.1491, allocations: 85.09 kB / 0.5217 GB, free: 1.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.056e-05/0.1492, allocations: 93.86 kB / 0.5218 GB, free: 1.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.1492, allocations: 25.7 kB / 0.5219 GB, free: 1.273 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.004e-05/0.1492, allocations: 84.12 kB / 0.5219 GB, free: 1.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.1492, allocations: 3.953 kB / 0.5219 GB, free: 1.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.1493, allocations: 13.72 kB / 0.522 GB, free: 1.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1494, allocations: 315 kB / 0.5223 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.297e-05/0.1494, allocations: 11.94 kB / 0.5223 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.831e-06/0.1494, allocations: 0 / 0.5223 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.053e-05/0.1495, allocations: 68.25 kB / 0.5223 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1495, allocations: 3.938 kB / 0.5223 GB, free: 0.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.875e-05/0.1496, allocations: 63.41 kB / 0.5224 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/0.1496, allocations: 33.7 kB / 0.5224 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.1496, allocations: 0 / 0.5224 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.1496, allocations: 3.984 kB / 0.5224 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.375e-05/0.1496, allocations: 4.094 kB / 0.5224 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1496, allocations: 3.984 kB / 0.5224 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.373e-05/0.1496, allocations: 0 / 0.5224 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.1497, allocations: 4 kB / 0.5224 GB, free: 0.6211 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.0001074/0.1498, allocations: 147.4 kB / 0.5226 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.1498, allocations: 0 / 0.5226 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.672e-05/0.1498, allocations: 7.156 kB / 0.5226 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.1498, allocations: 0 / 0.5226 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1498, allocations: 0 / 0.5226 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1498, allocations: 7.938 kB / 0.5226 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003323/0.1501, allocations: 271.4 kB / 0.5229 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.1501, allocations: 4 kB / 0.5229 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.437e-06/0.1501, allocations: 0 / 0.5229 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/0.1502, allocations: 0 / 0.5229 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.841e-06/0.1502, allocations: 0 / 0.5229 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1502, allocations: 0 / 0.5229 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1502, allocations: 0 / 0.5229 GB, free: 124 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001527/0.1503, allocations: 185.1 kB / 0.523 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.181e-06/0.1503, allocations: 3.938 kB / 0.523 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.09e-05/0.1503, allocations: 0 / 0.523 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.233e-05/0.1504, allocations: 4 kB / 0.523 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.1504, allocations: 0 / 0.523 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.1504, allocations: 0 / 0.523 GB, free: 15.91 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.166e-05/0.1504, allocations: 75.28 kB / 0.5231 GB, free: 15.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1504, allocations: 0 / 0.5231 GB, free: 15.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004523/0.1509, allocations: 167.3 kB / 0.5233 GB, free: 15.67 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.001115/0.152, allocations: 0.9397 MB / 0.5242 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001241/0.1521, allocations: 67.44 kB / 0.5243 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1521, allocations: 0 / 0.5243 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.324e-05/0.1522, allocations: 55.41 kB / 0.5243 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001946/0.1524, allocations: 9.078 kB / 0.5243 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.1535, allocations: 1.211 MB / 0.5255 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1538, allocations: 0.6729 MB / 0.5262 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.118e-05/0.1538, allocations: 0 / 0.5262 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.17e-05/0.1539, allocations: 11.44 kB / 0.5262 GB, free: 12.54 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1539, allocations: 4.031 kB / 0.5262 GB, free: 12.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.188, allocations: 4.647 MB / 0.5307 GB, free: 7.887 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.19, allocations: 20.28 kB / 0.5307 GB, free: 7.871 MB / 414.1 MB " [Timeout remaining time 649] (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.603746850974858]