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.00125/0.00125, allocations: 109 kB / 20.48 MB, free: 1.492 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.00181/0.00181, allocations: 212.8 kB / 23.79 MB, free: 4.707 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.544/1.544, allocations: 207.6 MB / 234.5 MB, free: 10 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.2451/0.2451, allocations: 44.25 MB / 331.1 MB, free: 9.613 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",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.002175/0.002175, allocations: 67.89 kB / 468.3 MB, free: 4.539 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1339, allocations: 61.04 MB / 0.5169 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001954/0.1358, allocations: 0.5104 MB / 0.5174 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003731/0.1396, allocations: 2.383 MB / 0.5197 GB, free: 4.441 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.635e-05/0.1396, allocations: 3.938 kB / 0.5197 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.382e-05/0.1396, allocations: 0 / 0.5197 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.442e-06/0.1396, allocations: 0 / 0.5197 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.1412, allocations: 0.5687 MB / 0.5203 GB, free: 3.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.133e-05/0.1413, allocations: 4 kB / 0.5203 GB, free: 3.863 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.25e-05/0.1413, allocations: 11.98 kB / 0.5203 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.619e-05/0.1414, allocations: 7.875 kB / 0.5203 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.633e-05/0.1414, allocations: 0 / 0.5203 GB, free: 3.844 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.295e-06/0.1414, allocations: 3.984 kB / 0.5203 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.1427, allocations: 0.7837 MB / 0.5211 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.099e-05/0.1427, allocations: 4 kB / 0.5211 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.531e-05/0.1428, allocations: 0 / 0.5211 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006872/0.1435, allocations: 455.1 kB / 0.5215 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1435, allocations: 0 / 0.5215 GB, free: 2.605 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1435, allocations: 0 / 0.5215 GB, free: 2.605 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1435, allocations: 4 kB / 0.5215 GB, free: 2.602 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.0004999/0.144, allocations: 359.1 kB / 0.5219 GB, free: 2.215 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.144, allocations: 8.031 kB / 0.5219 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.032e-05/0.144, allocations: 4.188 kB / 0.5219 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.225e-05/0.1441, allocations: 38.75 kB / 0.5219 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.696e-05/0.1441, allocations: 4.922 kB / 0.5219 GB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.806e-05/0.1442, allocations: 106.5 kB / 0.522 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1442, allocations: 384 / 0.522 GB, free: 2.023 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.939e-06/0.1442, allocations: 4.375 kB / 0.522 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.1443, allocations: 41.56 kB / 0.5221 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1443, allocations: 0 / 0.5221 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.1443, allocations: 0 / 0.5221 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.1444, allocations: 3.984 kB / 0.5221 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.128e-05/0.1444, allocations: 4 kB / 0.5221 GB, free: 1.965 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002421/0.1446, allocations: 204 kB / 0.5223 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.071e-05/0.1447, allocations: 30.55 kB / 0.5223 GB, free: 1.684 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.689e-05/0.1447, allocations: 8.844 kB / 0.5223 GB, free: 1.672 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.1447, allocations: 4.062 kB / 0.5223 GB, free: 1.668 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.446e-05/0.1448, allocations: 64.27 kB / 0.5224 GB, free: 1.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.012e-06/0.1448, allocations: 0 / 0.5224 GB, free: 1.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.000212/0.145, allocations: 75.33 kB / 0.5224 GB, free: 1.504 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.468e-05/0.1451, allocations: 77.11 kB / 0.5225 GB, free: 1.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.409e-05/0.1451, allocations: 89.86 kB / 0.5226 GB, free: 1.312 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.1451, allocations: 25.7 kB / 0.5226 GB, free: 1.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.1452, allocations: 80.14 kB / 0.5227 GB, free: 1.199 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.1452, allocations: 15.89 kB / 0.5227 GB, free: 1.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.117e-05/0.1452, allocations: 13.84 kB / 0.5227 GB, free: 1.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1454, allocations: 314.8 kB / 0.523 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.122e-05/0.1454, allocations: 0 / 0.523 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.13e-05/0.1454, allocations: 7.984 kB / 0.523 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.047e-05/0.1455, allocations: 68.2 kB / 0.5231 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1455, allocations: 0 / 0.5231 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.338e-05/0.1455, allocations: 67.34 kB / 0.5232 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.914e-05/0.1456, allocations: 37.69 kB / 0.5232 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.1456, allocations: 4.094 kB / 0.5232 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.1456, allocations: 0 / 0.5232 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.369e-05/0.1456, allocations: 0 / 0.5232 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.481e-06/0.1456, allocations: 0 / 0.5232 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.1456, allocations: 0 / 0.5232 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.1456, allocations: 4 kB / 0.5232 GB, free: 0.6289 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.000101/0.1457, allocations: 135.5 kB / 0.5233 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.1458, allocations: 4 kB / 0.5233 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.561e-05/0.1458, allocations: 3.156 kB / 0.5233 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1458, allocations: 8 kB / 0.5234 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1458, allocations: 0 / 0.5234 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.1458, allocations: 7.922 kB / 0.5234 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002619/0.1461, allocations: 275.3 kB / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1461, allocations: 0 / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.356e-06/0.1461, allocations: 0 / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.1461, allocations: 0 / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.1461, allocations: 0 / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1461, allocations: 0 / 0.5236 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1461, allocations: 4 kB / 0.5236 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.1462, allocations: 169.2 kB / 0.5238 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.001e-06/0.1462, allocations: 3.938 kB / 0.5238 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.1462, allocations: 4 kB / 0.5238 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.382e-05/0.1463, allocations: 4 kB / 0.5238 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.1463, allocations: 3.984 kB / 0.5238 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.1463, allocations: 0 / 0.5238 GB, free: 15.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.548e-05/0.1464, allocations: 79.22 kB / 0.5239 GB, free: 15.85 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1464, allocations: 4.031 kB / 0.5239 GB, free: 15.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.1469, allocations: 159.4 kB / 0.524 GB, free: 15.69 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.001188/0.1481, allocations: 0.941 MB / 0.525 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001186/0.1482, allocations: 63.41 kB / 0.525 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1482, allocations: 0 / 0.525 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.836e-05/0.1483, allocations: 63.33 kB / 0.5251 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.1485, allocations: 5.094 kB / 0.5251 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001093/0.1496, allocations: 1.214 MB / 0.5263 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.1499, allocations: 0.6768 MB / 0.5269 GB, free: 12.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.192e-05/0.1499, allocations: 4.062 kB / 0.5269 GB, free: 12.55 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.15, allocations: 7.438 kB / 0.5269 GB, free: 12.55 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.15, allocations: 0 / 0.5269 GB, free: 12.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02493/0.1749, allocations: 4.675 MB / 0.5315 GB, free: 7.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.58, allocations: 16.98 kB / 0.5315 GB, free: 7.859 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.948090916033834]