Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 118.1 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 189.2 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 225.6 MB / 249.8 MB, free: 3.711 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2243/0.2243, allocations: 44.92 MB / 349.6 MB, free: 1.73 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 75.06 kB / 491.8 MB, free: 29.91 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.132, allocations: 64.25 MB / 0.543 GB, free: 4.105 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001852/0.1339, allocations: 0.5037 MB / 0.5435 GB, free: 3.598 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003903/0.1378, allocations: 2.323 MB / 0.5458 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.089e-05/0.1378, allocations: 0 / 0.5458 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.1378, allocations: 0 / 0.5458 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.476e-06/0.1378, allocations: 4 kB / 0.5458 GB, free: 1.246 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.001926/0.1398, allocations: 0.5647 MB / 0.5463 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.515e-05/0.1398, allocations: 8 kB / 0.5463 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.646e-05/0.1399, allocations: 0 / 0.5463 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.467e-05/0.1399, allocations: 3.984 kB / 0.5463 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.152e-05/0.1399, allocations: 0 / 0.5463 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.304e-06/0.1399, allocations: 0 / 0.5463 GB, free: 0.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001326/0.1413, allocations: 0.7175 MB / 0.547 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/0.1413, allocations: 3.984 kB / 0.547 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.493e-05/0.1413, allocations: 4 kB / 0.547 GB, free: 15.94 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007667/0.1421, allocations: 447.1 kB / 0.5475 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1421, allocations: 0 / 0.5475 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1421, allocations: 0 / 0.5475 GB, free: 15.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1421, allocations: 0 / 0.5475 GB, free: 15.5 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.0006168/0.1427, allocations: 448.1 kB / 0.5479 GB, free: 15.01 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.1427, allocations: 8.031 kB / 0.5479 GB, free: 15 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.087e-05/0.1428, allocations: 38.69 kB / 0.5479 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.1428, allocations: 4.938 kB / 0.5479 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.143, allocations: 160.4 kB / 0.5481 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.143, allocations: 384 / 0.5481 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.092e-05/0.143, allocations: 384 / 0.5481 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.1431, allocations: 41.81 kB / 0.5481 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.1431, allocations: 0 / 0.5481 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.675e-06/0.1431, allocations: 3.938 kB / 0.5481 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.1431, allocations: 0 / 0.5481 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.403e-05/0.1431, allocations: 8 kB / 0.5481 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002901/0.1434, allocations: 240.8 kB / 0.5484 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.805e-05/0.1435, allocations: 18.61 kB / 0.5484 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.484e-05/0.1435, allocations: 8.922 kB / 0.5484 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.1435, allocations: 0 / 0.5484 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.249e-05/0.1436, allocations: 64.27 kB / 0.5485 GB, free: 14.3 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.1436, allocations: 0 / 0.5485 GB, free: 14.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002072/0.1438, allocations: 71.33 kB / 0.5485 GB, free: 14.21 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.023e-05/0.1438, allocations: 81.11 kB / 0.5486 GB, free: 14.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.322e-05/0.1439, allocations: 93.86 kB / 0.5487 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.1439, allocations: 25.7 kB / 0.5487 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.489e-05/0.144, allocations: 80.14 kB / 0.5488 GB, free: 13.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-05/0.144, allocations: 7.938 kB / 0.5488 GB, free: 13.89 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.313e-05/0.144, allocations: 13.84 kB / 0.5488 GB, free: 13.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1441, allocations: 322.8 kB / 0.5491 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.084e-05/0.1442, allocations: 0 / 0.5491 GB, free: 13.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-06/0.1442, allocations: 4 kB / 0.5491 GB, free: 13.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.622e-05/0.1442, allocations: 60.27 kB / 0.5492 GB, free: 13.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.1442, allocations: 3.938 kB / 0.5492 GB, free: 13.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.55e-05/0.1443, allocations: 79.33 kB / 0.5493 GB, free: 13.38 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.811e-05/0.1443, allocations: 29.7 kB / 0.5493 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.1444, allocations: 4.094 kB / 0.5493 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.1444, allocations: 0 / 0.5493 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.376e-05/0.1444, allocations: 0 / 0.5493 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.1444, allocations: 4 kB / 0.5493 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.1444, allocations: 0 / 0.5493 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.957e-06/0.1444, allocations: 3.984 kB / 0.5493 GB, free: 13.33 MB / 414.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.0001002/0.1445, allocations: 143.5 kB / 0.5494 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.122e-05/0.1445, allocations: 0 / 0.5494 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.771e-05/0.1446, allocations: 3.125 kB / 0.5494 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.1446, allocations: 7.984 kB / 0.5494 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1446, allocations: 0 / 0.5494 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.1446, allocations: 0 / 0.5494 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.1448, allocations: 308.2 kB / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1448, allocations: 0 / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.246e-06/0.1449, allocations: 0 / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.1449, allocations: 0 / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.1449, allocations: 0 / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1449, allocations: 4 kB / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1449, allocations: 0 / 0.5497 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.145, allocations: 177.2 kB / 0.5499 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.3e-05/0.1451, allocations: 77.11 kB / 0.55 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.457e-05/0.1451, allocations: 4 kB / 0.55 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.125e-05/0.1451, allocations: 0 / 0.55 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.926e-05/0.1452, allocations: 0 / 0.55 GB, free: 12.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.1452, allocations: 0 / 0.55 GB, free: 12.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.447e-05/0.1452, allocations: 79.22 kB / 0.5501 GB, free: 12.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1452, allocations: 8.031 kB / 0.5501 GB, free: 12.42 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004552/0.1457, allocations: 163.3 kB / 0.5502 GB, free: 12.26 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.001125/0.1468, allocations: 0.9322 MB / 0.5511 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.1469, allocations: 67.39 kB / 0.5512 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1469, allocations: 0 / 0.5512 GB, free: 11.22 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.478e-05/0.147, allocations: 63.34 kB / 0.5513 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001863/0.1471, allocations: 1.719 kB / 0.5513 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.1483, allocations: 1.222 MB / 0.5525 GB, free: 9.836 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.1487, allocations: 0.6727 MB / 0.5531 GB, free: 9.137 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.394e-05/0.1487, allocations: 4.062 kB / 0.5531 GB, free: 9.133 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.604e-05/0.1488, allocations: 11.44 kB / 0.5531 GB, free: 9.121 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1488, allocations: 0 / 0.5531 GB, free: 9.121 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02988/0.1786, allocations: 4.539 MB / 0.5576 GB, free: 4.684 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.391, allocations: 4.062 kB / 0.5576 GB, free: 4.68 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.37276086397469]