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.001487/0.001487, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001627/0.001627, allocations: 203.3 kB / 20.74 MB, free: 2.34 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.508/1.508, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.2386/0.2386, allocations: 44.9 MB / 355.1 MB, free: 12.34 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="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: 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.001987/0.001987, allocations: 67.89 kB / 499.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1403, allocations: 65.43 MB / 0.5517 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001724/0.142, allocations: 0.5009 MB / 0.5522 GB, free: 9.668 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003526/0.1456, allocations: 2.392 MB / 0.5546 GB, free: 7.254 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.1456, allocations: 4 kB / 0.5546 GB, free: 7.25 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.343e-05/0.1456, allocations: 0 / 0.5546 GB, free: 7.25 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.49e-06/0.1456, allocations: 0 / 0.5546 GB, free: 7.25 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.001721/0.1473, allocations: 0.557 MB / 0.5551 GB, free: 6.691 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.43e-05/0.1474, allocations: 11.92 kB / 0.5551 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.836e-05/0.1474, allocations: 0 / 0.5551 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.403e-05/0.1474, allocations: 7.938 kB / 0.5551 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.955e-05/0.1475, allocations: 0 / 0.5551 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-06/0.1475, allocations: 0 / 0.5551 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.1493, allocations: 0.7409 MB / 0.5559 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-06/0.1493, allocations: 0 / 0.5559 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.1493, allocations: 4 kB / 0.5559 GB, free: 5.926 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009429/0.1503, allocations: 451.1 kB / 0.5563 GB, free: 5.484 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1503, allocations: 4 kB / 0.5563 GB, free: 5.48 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.037e-06/0.1503, allocations: 3.984 kB / 0.5563 GB, free: 5.477 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1503, allocations: 0 / 0.5563 GB, free: 5.477 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.0006579/0.1509, allocations: 436.2 kB / 0.5567 GB, free: 4.996 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.151, allocations: 12.03 kB / 0.5567 GB, free: 4.984 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.781e-05/0.1511, allocations: 38.64 kB / 0.5568 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.1511, allocations: 0.9375 kB / 0.5568 GB, free: 4.938 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001606/0.1512, allocations: 176.2 kB / 0.5569 GB, free: 4.727 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.747e-06/0.1513, allocations: 384 / 0.5569 GB, free: 4.727 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.1513, allocations: 4.375 kB / 0.5569 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001267/0.1514, allocations: 41.83 kB / 0.557 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.1514, allocations: 0 / 0.557 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.1514, allocations: 0 / 0.557 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1514, allocations: 0 / 0.557 GB, free: 4.676 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.065e-05/0.1514, allocations: 4 kB / 0.557 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003355/0.1518, allocations: 232.8 kB / 0.5572 GB, free: 4.395 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.276e-05/0.1519, allocations: 22.67 kB / 0.5572 GB, free: 4.363 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.995e-05/0.1519, allocations: 16.84 kB / 0.5572 GB, free: 4.344 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.1519, allocations: 4 kB / 0.5573 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.956e-05/0.152, allocations: 56.27 kB / 0.5573 GB, free: 4.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.152, allocations: 0 / 0.5573 GB, free: 4.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.000262/0.1522, allocations: 75.33 kB / 0.5574 GB, free: 4.184 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.203e-05/0.1523, allocations: 77.11 kB / 0.5574 GB, free: 4.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.51e-05/0.1524, allocations: 93.98 kB / 0.5575 GB, free: 3.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.1524, allocations: 25.7 kB / 0.5576 GB, free: 3.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.409e-05/0.1525, allocations: 80.14 kB / 0.5576 GB, free: 3.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.1525, allocations: 7.953 kB / 0.5576 GB, free: 3.867 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/0.1525, allocations: 9.719 kB / 0.5577 GB, free: 3.852 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.1527, allocations: 314.8 kB / 0.558 GB, free: 3.535 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.576e-05/0.1527, allocations: 4 kB / 0.558 GB, free: 3.531 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.417e-05/0.1528, allocations: 3.984 kB / 0.558 GB, free: 3.527 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.565e-05/0.1528, allocations: 72.33 kB / 0.558 GB, free: 3.441 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.1529, allocations: 3.938 kB / 0.558 GB, free: 3.438 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001313/0.153, allocations: 63.34 kB / 0.5581 GB, free: 3.363 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.967e-05/0.153, allocations: 37.69 kB / 0.5581 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.153, allocations: 0 / 0.5581 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.1531, allocations: 0 / 0.5581 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.642e-05/0.1531, allocations: 0 / 0.5581 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.1531, allocations: 0 / 0.5581 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.865e-05/0.1531, allocations: 0 / 0.5581 GB, free: 3.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1531, allocations: 8.031 kB / 0.5581 GB, free: 3.312 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.0001355/0.1532, allocations: 139.5 kB / 0.5583 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.867e-05/0.1533, allocations: 0 / 0.5583 GB, free: 3.16 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.554e-05/0.1533, allocations: 11.06 kB / 0.5583 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.1533, allocations: 7.984 kB / 0.5583 GB, free: 3.145 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/0.1533, allocations: 3.984 kB / 0.5583 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.1533, allocations: 0 / 0.5583 GB, free: 3.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.1537, allocations: 304.2 kB / 0.5586 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1537, allocations: 32 / 0.5586 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-06/0.1537, allocations: 7.938 kB / 0.5586 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1537, allocations: 0 / 0.5586 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.1537, allocations: 0 / 0.5586 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1537, allocations: 0 / 0.5586 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1538, allocations: 0 / 0.5586 GB, free: 2.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002008/0.154, allocations: 173.2 kB / 0.5588 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.154, allocations: 77.11 kB / 0.5588 GB, free: 2.488 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.154, allocations: 4.031 kB / 0.5588 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.948e-05/0.1541, allocations: 0 / 0.5588 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.59e-05/0.1541, allocations: 7.984 kB / 0.5588 GB, free: 2.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.389e-06/0.1541, allocations: 3.938 kB / 0.5588 GB, free: 2.473 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.902e-05/0.1542, allocations: 75.28 kB / 0.5589 GB, free: 2.398 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1542, allocations: 0 / 0.5589 GB, free: 2.398 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000708/0.1549, allocations: 163.3 kB / 0.5591 GB, free: 2.238 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.001196/0.1561, allocations: 0.9491 MB / 0.56 GB, free: 1.262 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.1562, allocations: 63.39 kB / 0.5601 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1562, allocations: 3.938 kB / 0.5601 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.365e-05/0.1563, allocations: 63.5 kB / 0.5601 GB, free: 1.109 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.1564, allocations: 4 kB / 0.5601 GB, free: 1.105 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.1576, allocations: 1.207 MB / 0.5613 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.1579, allocations: 0.6729 MB / 0.562 GB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.107e-05/0.1579, allocations: 0 / 0.562 GB, free: 15.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.273e-05/0.158, allocations: 15.38 kB / 0.562 GB, free: 15.1 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.158, allocations: 0 / 0.562 GB, free: 15.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.1894, allocations: 4.648 MB / 0.5665 GB, free: 10.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.257/8.446, allocations: 14.41 kB / 0.5665 GB, free: 10.54 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.533507240004838]