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.0008404/0.0008404, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009556/0.0009556, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8844/0.8844, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.2527/0.2527, allocations: 32.79 MB / 293.5 MB, free: 1.227 MB / 266.7 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="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 1.393e-06/1.393e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.243e-05, allocations: 4.672 kB / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001114/0.001136, allocations: 0.5051 MB / 440.1 MB, free: 3.754 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.003595, allocations: 2.241 MB / 442.3 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.564e-05/0.00361, allocations: 0 / 442.3 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.457e-05/0.003625, allocations: 4 kB / 442.3 MB, free: 1.484 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.003631, allocations: 0 / 442.3 MB, free: 1.484 MB / 410.7 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.001109/0.00474, allocations: 0.5857 MB / 442.9 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.477e-05/0.004785, allocations: 0 / 442.9 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.614e-05/0.004821, allocations: 4 kB / 442.9 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.56e-05/0.004847, allocations: 0 / 442.9 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.952e-05/0.004866, allocations: 7.984 kB / 442.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.713e-06/0.004873, allocations: 0 / 442.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007292/0.005602, allocations: 0.686 MB / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.293e-06/0.00561, allocations: 0 / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.74e-05/0.005627, allocations: 0 / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1683/0.1739, allocations: 0.517 MB / 444.1 MB, free: 43.65 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1739, allocations: 3.438 kB / 444.1 MB, free: 43.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1739, allocations: 1.406 kB / 444.1 MB, free: 43.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1739, allocations: 0 / 444.1 MB, free: 43.65 MB / 410.7 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.0002971/0.1742, allocations: 367.8 kB / 444.5 MB, free: 43.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.1742, allocations: 8.062 kB / 444.5 MB, free: 43.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.71e-05/0.1743, allocations: 37.42 kB / 444.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.506e-05/0.1743, allocations: 0.9375 kB / 444.5 MB, free: 43.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.639e-05/0.1744, allocations: 110.4 kB / 444.6 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.799e-06/0.1744, allocations: 4.844 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-06/0.1744, allocations: 384 / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.675e-05/0.1745, allocations: 58.66 kB / 444.7 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.1745, allocations: 192 / 444.7 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.083e-06/0.1745, allocations: 384 / 444.7 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.1745, allocations: 7.312 kB / 444.7 MB, free: 43.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.122e-05/0.1745, allocations: 34.2 kB / 444.7 MB, free: 43.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.1746, allocations: 194.9 kB / 444.9 MB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.782e-05/0.1747, allocations: 52.67 kB / 445 MB, free: 42.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.1747, allocations: 35.22 kB / 445 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.276e-06/0.1747, allocations: 3.469 kB / 445 MB, free: 42.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.1747, allocations: 64.27 kB / 445.1 MB, free: 42.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1747, allocations: 0.9844 kB / 445.1 MB, free: 42.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001595/0.1749, allocations: 126.6 kB / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.1749, allocations: 81.22 kB / 445.3 MB, free: 42.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.027e-05/0.1749, allocations: 94.45 kB / 445.4 MB, free: 42.35 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-06/0.1749, allocations: 28.52 kB / 445.4 MB, free: 42.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.002e-06/0.1749, allocations: 80.14 kB / 445.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.175, allocations: 7.734 kB / 445.5 MB, free: 42.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.063e-05/0.175, allocations: 14.16 kB / 445.5 MB, free: 42.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.673e-05/0.175, allocations: 314.4 kB / 445.8 MB, free: 41.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.155e-05/0.175, allocations: 31.28 kB / 445.9 MB, free: 41.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-06/0.175, allocations: 29.3 kB / 445.9 MB, free: 41.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.741e-05/0.1751, allocations: 69.3 kB / 445.9 MB, free: 41.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1751, allocations: 0.8438 kB / 446 MB, free: 41.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.602e-05/0.1751, allocations: 101.5 kB / 446 MB, free: 41.67 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.1751, allocations: 36.08 kB / 446.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1751, allocations: 0 / 446.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.1751, allocations: 0 / 446.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.576e-05/0.1752, allocations: 1.812 kB / 446.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1752, allocations: 2.531 kB / 446.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.363e-05/0.1752, allocations: 1 kB / 446.1 MB, free: 41.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1752, allocations: 0 / 446.1 MB, free: 41.64 MB / 410.7 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 4.138e-05/0.1752, allocations: 143.7 kB / 446.2 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.186e-05/0.1752, allocations: 10.05 kB / 446.2 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.631e-05/0.1753, allocations: 3.781 kB / 446.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1753, allocations: 0 / 446.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.1753, allocations: 3.375 kB / 446.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1753, allocations: 0 / 446.2 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001293/0.1754, allocations: 305 kB / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1754, allocations: 0 / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.005e-06/0.1754, allocations: 0 / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1754, allocations: 0 / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.68e-06/0.1754, allocations: 0 / 446.5 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.61e-07/0.1754, allocations: 6 kB / 446.6 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1754, allocations: 0 / 446.6 MB, free: 41.16 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.012e-05/0.1755, allocations: 194.4 kB / 446.7 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-06/0.1755, allocations: 6.562 kB / 446.7 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-06/0.1755, allocations: 3.406 kB / 446.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.414e-05/0.1755, allocations: 2.844 kB / 446.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.301e-05/0.1755, allocations: 0 / 446.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.1755, allocations: 1.969 kB / 446.8 MB, free: 40.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.736e-06/0.1755, allocations: 78.66 kB / 446.8 MB, free: 40.89 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1755, allocations: 0 / 446.8 MB, free: 40.89 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003093/0.1758, allocations: 163.7 kB / 447 MB, free: 40.86 MB / 410.7 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.0006846/0.1765, allocations: 1.036 MB / 448 MB, free: 40.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.96e-05/0.1766, allocations: 114.6 kB / 448.1 MB, free: 39.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1766, allocations: 5.094 kB / 448.1 MB, free: 39.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.531e-05/0.1766, allocations: 83.19 kB / 448.2 MB, free: 39.85 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.1768, allocations: 6 kB / 448.2 MB, free: 39.85 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005125/0.1773, allocations: 1.35 MB / 449.6 MB, free: 38.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.012e-05/0.1773, allocations: 57.64 kB / 449.6 MB, free: 38.43 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.307e-06/0.1773, allocations: 6.656 kB / 449.6 MB, free: 38.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.1773, allocations: 8.5 kB / 449.7 MB, free: 38.42 MB / 410.7 MB Notification: Performance of SimCode: time 3.71e-07/0.1773, allocations: 0 / 449.7 MB, free: 38.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01899/0.1963, allocations: 5.349 MB / 455 MB, free: 37.24 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.912/7.108, allocations: 4.562 kB / 455 MB, free: 37.23 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/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: 9.01704249624163]