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.001047/0.001047, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001294/0.001294, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9037/0.9037, allocations: 177.1 MB / 204.3 MB, free: 5.707 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.2416/0.2416, allocations: 32.79 MB / 293.5 MB, free: 1.234 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.402e-06/1.402e-06, allocations: 0 / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.67e-05/1.81e-05, allocations: 6.281 kB / 439.6 MB, free: 4.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0009367/0.0009548, allocations: 0.4907 MB / 440.1 MB, free: 3.762 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002276/0.003231, allocations: 2.249 MB / 442.3 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.64e-05/0.003247, allocations: 4 kB / 442.3 MB, free: 1.484 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.528e-05/0.003263, allocations: 0 / 442.3 MB, free: 1.484 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-06/0.003269, 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.001269/0.004538, allocations: 0.5925 MB / 442.9 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.448e-05/0.004583, allocations: 4 kB / 442.9 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.621e-05/0.004619, allocations: 0 / 442.9 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.291e-05/0.004652, allocations: 0 / 442.9 MB, free: 0.8906 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.004671, allocations: 8 kB / 442.9 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.014e-06/0.004678, allocations: 0 / 442.9 MB, free: 0.8828 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008158/0.005494, allocations: 0.6782 MB / 443.6 MB, free: 208 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.515e-06/0.005502, allocations: 4 kB / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.963e-05/0.005521, allocations: 3.984 kB / 443.6 MB, free: 200 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1659/0.1714, allocations: 0.5172 MB / 444.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1714, allocations: 0 / 444.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1714, allocations: 2.844 kB / 444.1 MB, free: 43.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1714, allocations: 3.25 kB / 444.1 MB, free: 43.21 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.0003218/0.1717, allocations: 367.5 kB / 444.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.1718, allocations: 8.812 kB / 444.5 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.584e-05/0.1718, allocations: 37.45 kB / 444.5 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.716e-05/0.1718, allocations: 0.9375 kB / 444.5 MB, free: 42.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.446e-05/0.1719, allocations: 105.7 kB / 444.6 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.1719, allocations: 4.156 kB / 444.7 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-06/0.1719, allocations: 4.219 kB / 444.7 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.208e-05/0.172, allocations: 61.28 kB / 444.7 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.172, allocations: 192 / 444.7 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.393e-06/0.172, allocations: 384 / 444.7 MB, free: 42.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.172, allocations: 3.938 kB / 444.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.055e-05/0.172, allocations: 32.38 kB / 444.8 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001474/0.1721, allocations: 195.9 kB / 444.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.214e-05/0.1722, allocations: 52.91 kB / 445 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.1722, allocations: 36.66 kB / 445 MB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.148e-06/0.1722, allocations: 4.031 kB / 445 MB, free: 42.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1723, allocations: 63.39 kB / 445.1 MB, free: 42.23 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 6.52e-07/0.1723, allocations: 0.5625 kB / 445.1 MB, free: 42.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001954/0.1724, allocations: 131.4 kB / 445.2 MB, free: 42.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.755e-05/0.1725, allocations: 77.11 kB / 445.3 MB, free: 42.01 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.3e-05/0.1725, allocations: 91.05 kB / 445.4 MB, free: 41.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.35e-05/0.1725, allocations: 28.8 kB / 445.4 MB, free: 41.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.013e-06/0.1725, allocations: 80.14 kB / 445.5 MB, free: 41.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.1725, allocations: 8.219 kB / 445.5 MB, free: 41.79 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.1726, allocations: 14.25 kB / 445.5 MB, free: 41.78 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.032e-05/0.1726, allocations: 313.5 kB / 445.8 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.512e-05/0.1726, allocations: 32.48 kB / 445.9 MB, free: 41.43 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.073e-05/0.1726, allocations: 31.39 kB / 445.9 MB, free: 41.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.328e-05/0.1726, allocations: 69.58 kB / 446 MB, free: 41.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1726, allocations: 0 / 446 MB, free: 41.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.597e-05/0.1727, allocations: 95.77 kB / 446 MB, free: 41.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.602e-05/0.1727, allocations: 37.89 kB / 446.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.1727, allocations: 3.281 kB / 446.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1727, allocations: 2.875 kB / 446.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-05/0.1727, allocations: 0 / 446.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.1728, allocations: 0 / 446.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.454e-05/0.1728, allocations: 3.234 kB / 446.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.1728, allocations: 6.781 kB / 446.1 MB, free: 41.2 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.191e-05/0.1728, allocations: 138.6 kB / 446.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.1728, allocations: 3.938 kB / 446.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.464e-05/0.1728, allocations: 3.156 kB / 446.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1728, allocations: 0 / 446.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1729, allocations: 3.375 kB / 446.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1729, allocations: 2.688 kB / 446.2 MB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.173, allocations: 302.3 kB / 446.5 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.173, allocations: 0.5 kB / 446.5 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-06/0.173, allocations: 3.75 kB / 446.5 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.173, allocations: 0 / 446.5 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.173, allocations: 0.5 kB / 446.5 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.173, allocations: 0 / 446.5 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.173, allocations: 2.406 kB / 446.6 MB, free: 40.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.696e-05/0.173, allocations: 198.8 kB / 446.7 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-06/0.173, allocations: 0 / 446.7 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.019e-05/0.173, allocations: 5.812 kB / 446.8 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.315e-05/0.1731, allocations: 3 kB / 446.8 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.1731, allocations: 4.031 kB / 446.8 MB, free: 40.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.1731, allocations: 6.594 kB / 446.8 MB, free: 40.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.273e-06/0.1731, allocations: 75.28 kB / 446.8 MB, free: 40.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1731, allocations: 0 / 446.8 MB, free: 40.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000297/0.1734, allocations: 161.1 kB / 447 MB, free: 40.42 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.0006182/0.174, allocations: 1.029 MB / 448 MB, free: 39.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.434e-05/0.1741, allocations: 123.6 kB / 448.1 MB, free: 39.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.1741, allocations: 3.062 kB / 448.1 MB, free: 39.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.56e-05/0.1741, allocations: 80.23 kB / 448.2 MB, free: 39.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.1742, allocations: 6.281 kB / 448.2 MB, free: 39.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004944/0.1747, allocations: 1.347 MB / 449.6 MB, free: 38.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.373e-05/0.1748, allocations: 57.42 kB / 449.6 MB, free: 37.98 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 9.367e-06/0.1748, allocations: 192 / 449.6 MB, free: 37.98 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.723e-05/0.1748, allocations: 15.25 kB / 449.6 MB, free: 37.98 MB / 410.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1748, allocations: 0 / 449.6 MB, free: 37.98 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.1915, allocations: 5.352 MB / 455 MB, free: 36.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.96/7.152, allocations: 6.938 kB / 455 MB, free: 36.8 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 & 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/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] "Error: Failed to open simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.167163176462054]