Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008254/0.0008254, allocations: 83.69 kB / 20.67 MB, free: 3.879 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.0009584/0.0009584, allocations: 170 kB / 23.95 MB, free: 0.6016 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.908/0.908, 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2477/0.2477, allocations: 34.25 MB / 294.9 MB, free: 0.7148 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 442.2 MB, free: 1.668 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.082e-05/2.291e-05, allocations: 2.281 kB / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001439/0.001462, allocations: 0.4954 MB / 442.7 MB, free: 1.172 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1868/0.1883, allocations: 2.25 MB / 444.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.055e-05/0.1883, allocations: 0 / 444.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.831e-05/0.1883, allocations: 0.5625 kB / 444.9 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 9.037e-06/0.1883, allocations: 0 / 444.9 MB, free: 43.14 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001395/0.1897, allocations: 0.5852 MB / 445.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.778e-05/0.1898, allocations: 6.344 kB / 445.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.325e-05/0.1898, allocations: 2.875 kB / 445.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.266e-05/0.1899, allocations: 0 / 445.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.28e-05/0.1899, allocations: 2.969 kB / 445.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.165e-06/0.1899, allocations: 3.938 kB / 445.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008161/0.1907, allocations: 0.6792 MB / 446.2 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.476e-06/0.1907, allocations: 3.344 kB / 446.2 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.107e-05/0.1907, allocations: 2.844 kB / 446.2 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.1912, allocations: 0.5205 MB / 446.7 MB, free: 42.87 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1912, allocations: 0 / 446.7 MB, free: 42.87 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1912, allocations: 0 / 446.7 MB, free: 42.87 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.1912, allocations: 3.438 kB / 446.7 MB, free: 42.87 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.0003311/0.1915, allocations: 372.1 kB / 447.1 MB, free: 42.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1916, allocations: 8.5 kB / 447.1 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.534e-05/0.1916, allocations: 34.02 kB / 447.1 MB, free: 42.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.815e-05/0.1917, allocations: 7.172 kB / 447.1 MB, free: 42.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.014e-05/0.1917, allocations: 108.9 kB / 447.2 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1917, allocations: 384 / 447.2 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-06/0.1917, allocations: 2.938 kB / 447.2 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.198e-05/0.1918, allocations: 54.47 kB / 447.3 MB, free: 42.28 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.1918, allocations: 4.188 kB / 447.3 MB, free: 42.28 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.968e-06/0.1918, allocations: 3.062 kB / 447.3 MB, free: 42.28 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.1918, allocations: 5.438 kB / 447.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.613e-05/0.1919, allocations: 34.8 kB / 447.3 MB, free: 42.24 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001905/0.1921, allocations: 194.6 kB / 447.5 MB, free: 42.01 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.983e-05/0.1921, allocations: 56.3 kB / 447.6 MB, free: 41.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.479e-05/0.1921, allocations: 39.91 kB / 447.6 MB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.1922, allocations: 3.938 kB / 447.6 MB, free: 41.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.1922, allocations: 63.11 kB / 447.7 MB, free: 41.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.1922, allocations: 4 kB / 447.7 MB, free: 41.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002099/0.1924, allocations: 121.3 kB / 447.8 MB, free: 41.71 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.1924, allocations: 84.23 kB / 447.9 MB, free: 41.61 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.043e-05/0.1925, allocations: 89.86 kB / 448 MB, free: 41.51 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-06/0.1925, allocations: 28.64 kB / 448 MB, free: 41.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.237e-06/0.1925, allocations: 80.14 kB / 448.1 MB, free: 41.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.645e-05/0.1925, allocations: 4.938 kB / 448.1 MB, free: 41.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.1925, allocations: 12.56 kB / 448.1 MB, free: 41.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.1926, allocations: 313.8 kB / 448.4 MB, free: 41.07 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.922e-05/0.1926, allocations: 37.19 kB / 448.4 MB, free: 41.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.14e-05/0.1926, allocations: 32.67 kB / 448.5 MB, free: 41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.534e-05/0.1926, allocations: 65.58 kB / 448.5 MB, free: 40.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1926, allocations: 0 / 448.5 MB, free: 40.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.965e-05/0.1927, allocations: 103.7 kB / 448.6 MB, free: 40.83 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.1927, allocations: 36.3 kB / 448.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1927, allocations: 0 / 448.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.1927, allocations: 0 / 448.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.059e-05/0.1928, allocations: 0 / 448.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.1928, allocations: 0 / 448.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.704e-05/0.1928, allocations: 3.047 kB / 448.7 MB, free: 40.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.1928, allocations: 6.844 kB / 448.7 MB, free: 40.79 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.986e-05/0.1928, allocations: 134.6 kB / 448.8 MB, free: 40.65 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.1929, allocations: 3.938 kB / 448.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.134e-05/0.1929, allocations: 5.875 kB / 448.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.1929, allocations: 0 / 448.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1929, allocations: 3.031 kB / 448.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1929, allocations: 0 / 448.8 MB, free: 40.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001494/0.193, allocations: 296.7 kB / 449.1 MB, free: 40.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.91e-07/0.193, allocations: 3.938 kB / 449.1 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.879e-06/0.193, allocations: 0 / 449.1 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1931, allocations: 6.969 kB / 449.1 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1931, allocations: 0 / 449.1 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1931, allocations: 0 / 449.1 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1931, allocations: 0 / 449.1 MB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.048e-05/0.1931, allocations: 207.9 kB / 449.3 MB, free: 40.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-06/0.1931, allocations: 3.938 kB / 449.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.1931, allocations: 0 / 449.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.562e-05/0.1932, allocations: 3 kB / 449.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.931e-05/0.1932, allocations: 1.312 kB / 449.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.1932, allocations: 0 / 449.3 MB, free: 40.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.177e-05/0.1932, allocations: 82.22 kB / 449.4 MB, free: 40.02 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1932, allocations: 0 / 449.4 MB, free: 40.02 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003473/0.1936, allocations: 160.9 kB / 449.6 MB, free: 39.98 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.0007626/0.1943, allocations: 1.025 MB / 450.6 MB, free: 39.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.009e-05/0.1944, allocations: 119.2 kB / 450.7 MB, free: 39.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.1944, allocations: 0 / 450.7 MB, free: 39.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.523e-05/0.1944, allocations: 89.72 kB / 450.8 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001366/0.1946, allocations: 4.641 kB / 450.8 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005416/0.1951, allocations: 1.356 MB / 452.2 MB, free: 37.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.242e-05/0.1951, allocations: 57.44 kB / 452.2 MB, free: 37.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.101e-05/0.1951, allocations: 0 / 452.2 MB, free: 37.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.183e-05/0.1952, allocations: 11.31 kB / 452.2 MB, free: 37.47 MB / 410.7 MB Notification: Performance of SimCode: time 6.41e-07/0.1952, allocations: 4.188 kB / 452.2 MB, free: 37.47 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01917/0.2143, allocations: 5.352 MB / 457.6 MB, free: 36.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.302/7.516, allocations: 10.94 kB / 457.6 MB, free: 36.27 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.1.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv: Error: Error opening file: ModelicaTest_4.1.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.540686686523259]