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.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.001459/0.001459, allocations: 121 kB / 18.49 MB, free: 4.586 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.001774/0.001774, allocations: 213.5 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.505/1.505, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.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.2437/0.2437, allocations: 44.9 MB / 355.8 MB, free: 12.32 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.00193/0.00193, allocations: 63.91 kB / 0.4885 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.143, allocations: 65.43 MB / 0.5524 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001778/0.1448, allocations: 0.4986 MB / 0.5529 GB, free: 9.629 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003834/0.1486, allocations: 2.392 MB / 0.5553 GB, free: 7.215 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.436e-05/0.1487, allocations: 0 / 0.5553 GB, free: 7.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.342e-05/0.1487, allocations: 0 / 0.5553 GB, free: 7.215 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.72e-06/0.1487, allocations: 0 / 0.5553 GB, free: 7.215 MB / 414.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.001886/0.1506, allocations: 0.5681 MB / 0.5558 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.777e-05/0.1506, allocations: 4 kB / 0.5558 GB, free: 6.645 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.19e-05/0.1507, allocations: 4 kB / 0.5558 GB, free: 6.641 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.064e-05/0.1507, allocations: 7.922 kB / 0.5558 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.795e-05/0.1507, allocations: 0 / 0.5558 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-06/0.1507, allocations: 0 / 0.5558 GB, free: 6.633 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1521, allocations: 0.7331 MB / 0.5565 GB, free: 5.898 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.365e-06/0.1521, allocations: 0 / 0.5565 GB, free: 5.898 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.27e-05/0.1521, allocations: 8 kB / 0.5565 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008971/0.153, allocations: 459.1 kB / 0.557 GB, free: 5.441 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.153, allocations: 4 kB / 0.557 GB, free: 5.438 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.153, allocations: 0 / 0.557 GB, free: 5.438 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.521e-06/0.153, allocations: 3.938 kB / 0.557 GB, free: 5.434 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.0006193/0.1537, allocations: 440.2 kB / 0.5574 GB, free: 4.949 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.1537, allocations: 12.03 kB / 0.5574 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.113e-05/0.1537, allocations: 4.188 kB / 0.5574 GB, free: 4.934 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.1538, allocations: 34.7 kB / 0.5575 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.37e-05/0.1538, allocations: 0.9375 kB / 0.5575 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.1539, allocations: 168.3 kB / 0.5576 GB, free: 4.688 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1539, allocations: 8.312 kB / 0.5576 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.345e-05/0.154, allocations: 384 / 0.5576 GB, free: 4.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.1541, allocations: 41.58 kB / 0.5577 GB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.1541, allocations: 0 / 0.5577 GB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.1541, allocations: 0 / 0.5577 GB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1541, allocations: 4 kB / 0.5577 GB, free: 4.629 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.248e-05/0.1541, allocations: 4 kB / 0.5577 GB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.1544, allocations: 224.9 kB / 0.5579 GB, free: 4.355 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.425e-05/0.1545, allocations: 26.61 kB / 0.5579 GB, free: 4.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.933e-05/0.1545, allocations: 12.78 kB / 0.5579 GB, free: 4.305 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.1546, allocations: 8.047 kB / 0.5579 GB, free: 4.297 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.552e-05/0.1546, allocations: 60.27 kB / 0.558 GB, free: 4.223 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1546, allocations: 0 / 0.558 GB, free: 4.223 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000228/0.1548, allocations: 67.41 kB / 0.5581 GB, free: 4.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.1549, allocations: 81.09 kB / 0.5581 GB, free: 4.047 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.155e-05/0.155, allocations: 89.86 kB / 0.5582 GB, free: 3.949 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.155, allocations: 29.7 kB / 0.5583 GB, free: 3.914 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.73e-05/0.155, allocations: 80.14 kB / 0.5583 GB, free: 3.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.1551, allocations: 12.08 kB / 0.5583 GB, free: 3.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.139e-05/0.1551, allocations: 9.719 kB / 0.5584 GB, free: 3.805 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1553, allocations: 314.8 kB / 0.5587 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.1553, allocations: 0 / 0.5587 GB, free: 3.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.023e-05/0.1553, allocations: 7.938 kB / 0.5587 GB, free: 3.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.862e-05/0.1553, allocations: 72.19 kB / 0.5587 GB, free: 3.395 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1553, allocations: 0 / 0.5587 GB, free: 3.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001031/0.1554, allocations: 63.47 kB / 0.5588 GB, free: 3.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.1555, allocations: 37.73 kB / 0.5588 GB, free: 3.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1555, allocations: 3.984 kB / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.1555, allocations: 0 / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.682e-05/0.1555, allocations: 0 / 0.5588 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.1555, allocations: 3.984 kB / 0.5588 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.71e-05/0.1556, allocations: 0 / 0.5588 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1556, allocations: 4 kB / 0.5588 GB, free: 3.266 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.0001143/0.1557, allocations: 139.4 kB / 0.559 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.1557, allocations: 8 kB / 0.559 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.55e-05/0.1557, allocations: 11.06 kB / 0.559 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1557, allocations: 3.938 kB / 0.559 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1557, allocations: 0 / 0.559 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1557, allocations: 0 / 0.559 GB, free: 3.094 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003248/0.1561, allocations: 300.3 kB / 0.5593 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.1561, allocations: 4 kB / 0.5593 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.701e-06/0.1561, allocations: 0 / 0.5593 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1561, allocations: 0 / 0.5593 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.1561, allocations: 0 / 0.5593 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1561, allocations: 32 / 0.5593 GB, free: 2.734 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1561, allocations: 4 kB / 0.5593 GB, free: 2.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001811/0.1563, allocations: 177.1 kB / 0.5595 GB, free: 2.535 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/0.1563, allocations: 81.11 kB / 0.5595 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1563, allocations: 0 / 0.5595 GB, free: 2.438 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.925e-05/0.1564, allocations: 4 kB / 0.5595 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.1564, allocations: 0 / 0.5595 GB, free: 2.434 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.1564, allocations: 3.984 kB / 0.5595 GB, free: 2.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.332e-05/0.1564, allocations: 83.25 kB / 0.5596 GB, free: 2.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1564, allocations: 0 / 0.5596 GB, free: 2.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006198/0.1571, allocations: 159.4 kB / 0.5598 GB, free: 2.191 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.001542/0.1586, allocations: 0.9494 MB / 0.5607 GB, free: 1.215 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001626/0.1588, allocations: 59.41 kB / 0.5608 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1588, allocations: 0 / 0.5608 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.658e-05/0.1588, allocations: 59.39 kB / 0.5608 GB, free: 1.074 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.1591, allocations: 7.938 kB / 0.5608 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.1604, allocations: 1.222 MB / 0.562 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.1608, allocations: 0.669 MB / 0.5627 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.427e-05/0.1608, allocations: 4 kB / 0.5627 GB, free: 15.06 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.397e-05/0.1608, allocations: 7.438 kB / 0.5627 GB, free: 15.05 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1608, allocations: 3.938 kB / 0.5627 GB, free: 15.05 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02282/0.1837, allocations: 4.673 MB / 0.5672 GB, free: 10.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/8.449, allocations: 10.41 kB / 0.5673 GB, free: 10.48 MB / 430.1 MB " [Timeout remaining time 651] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.473833735042717]