Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.001211/0.001211, allocations: 79.7 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.001377/0.001377, allocations: 170 kB / 23.94 MB, free: 0.6172 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.9125/0.9125, allocations: 177.1 MB / 204.3 MB, free: 5.727 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.243/0.243, allocations: 32.79 MB / 293.5 MB, free: 1.223 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.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.508e-05/1.687e-05, allocations: 4.531 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0009516/0.0009685, allocations: 0.5011 MB / 440.1 MB, free: 3.777 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.00289, allocations: 2.016 MB / 442.1 MB, free: 1.738 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.379e-05/0.002904, allocations: 0 / 442.1 MB, free: 1.738 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.39e-05/0.002918, allocations: 0 / 442.1 MB, free: 1.738 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 5.581e-06/0.002923, allocations: 4 kB / 442.1 MB, free: 1.734 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0009689/0.003892, allocations: 0.5178 MB / 442.6 MB, free: 1.215 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.61e-05/0.003938, allocations: 0 / 442.6 MB, free: 1.215 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.418e-05/0.003973, allocations: 3.984 kB / 442.6 MB, free: 1.211 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.583e-05/0.003998, allocations: 4 kB / 442.6 MB, free: 1.207 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.79e-05/0.004016, allocations: 4 kB / 442.6 MB, free: 1.203 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.004024, allocations: 0 / 442.6 MB, free: 1.203 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000683/0.004707, allocations: 0.6431 MB / 443.3 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.414e-06/0.004714, allocations: 0 / 443.3 MB, free: 0.5586 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.837e-05/0.004733, allocations: 4 kB / 443.3 MB, free: 0.5547 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004619/0.005195, allocations: 470.7 kB / 443.7 MB, free: 96 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.005196, allocations: 0 / 443.7 MB, free: 96 kB / 410.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005197, allocations: 0 / 443.7 MB, free: 96 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.005201, allocations: 0 / 443.7 MB, free: 96 kB / 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.1689/0.1741, allocations: 338.9 kB / 444.1 MB, free: 46.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1741, allocations: 10.91 kB / 444.1 MB, free: 46.34 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.109e-05/0.1742, allocations: 40.3 kB / 444.1 MB, free: 46.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.861e-05/0.1742, allocations: 0.9375 kB / 444.1 MB, free: 46.3 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.557e-05/0.1742, allocations: 104.7 kB / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.1742, allocations: 3.438 kB / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.985e-06/0.1743, allocations: 1.906 kB / 444.2 MB, free: 46.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.687e-05/0.1743, allocations: 57.94 kB / 444.3 MB, free: 46.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.1743, allocations: 192 / 444.3 MB, free: 46.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.1744, allocations: 3.75 kB / 444.3 MB, free: 46.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1744, allocations: 3.938 kB / 444.3 MB, free: 46.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.035e-05/0.1744, allocations: 30.42 kB / 444.3 MB, free: 46.08 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001692/0.1745, allocations: 203.2 kB / 444.5 MB, free: 45.85 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.779e-05/0.1746, allocations: 49.62 kB / 444.6 MB, free: 45.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.978e-05/0.1746, allocations: 36.53 kB / 444.6 MB, free: 45.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.1746, allocations: 2.312 kB / 444.6 MB, free: 45.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.1746, allocations: 64.73 kB / 444.7 MB, free: 45.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 7.81e-07/0.1746, allocations: 0 / 444.7 MB, free: 45.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001595/0.1748, allocations: 126.7 kB / 444.8 MB, free: 45.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.351e-05/0.1748, allocations: 77.73 kB / 444.9 MB, free: 45.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.207e-05/0.1748, allocations: 93.05 kB / 445 MB, free: 45.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.288e-06/0.1748, allocations: 29.2 kB / 445 MB, free: 45.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.351e-06/0.1749, allocations: 80.64 kB / 445.1 MB, free: 45.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.1749, allocations: 6.438 kB / 445.1 MB, free: 45.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.1749, allocations: 13.56 kB / 445.1 MB, free: 45.24 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.77e-05/0.1749, allocations: 321.5 kB / 445.4 MB, free: 44.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.055e-05/0.1749, allocations: 25.7 kB / 445.4 MB, free: 44.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.338e-06/0.1749, allocations: 32.92 kB / 445.5 MB, free: 44.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.748e-05/0.175, allocations: 64.02 kB / 445.5 MB, free: 44.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.175, allocations: 2.781 kB / 445.5 MB, free: 44.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.063e-05/0.175, allocations: 100.7 kB / 445.6 MB, free: 44.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.175, allocations: 34.98 kB / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.175, allocations: 0 / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1751, allocations: 2.656 kB / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.684e-05/0.1751, allocations: 0 / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1751, allocations: 3.375 kB / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.1751, allocations: 0.75 kB / 445.7 MB, free: 44.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.1751, allocations: 2.656 kB / 445.7 MB, free: 44.66 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 3.647e-05/0.1751, allocations: 138 kB / 445.8 MB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/0.1751, allocations: 3.625 kB / 445.8 MB, free: 44.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.504e-05/0.1752, allocations: 7.656 kB / 445.8 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1752, allocations: 6.031 kB / 445.8 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1752, allocations: 0 / 445.8 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.1752, allocations: 0 / 445.8 MB, free: 44.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001147/0.1753, allocations: 301 kB / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1753, allocations: 4.781 kB / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.254e-06/0.1753, allocations: 0 / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.92e-07/0.1753, allocations: 0 / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-06/0.1753, allocations: 0 / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1753, allocations: 3.656 kB / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-07/0.1753, allocations: 2.781 kB / 446.1 MB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.858e-05/0.1753, allocations: 195 kB / 446.3 MB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.55e-06/0.1753, allocations: 6.719 kB / 446.3 MB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1754, allocations: 0 / 446.3 MB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.369e-05/0.1754, allocations: 1.641 kB / 446.3 MB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.1754, allocations: 5.375 kB / 446.3 MB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-06/0.1754, allocations: 0.5625 kB / 446.3 MB, free: 43.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.085e-06/0.1754, allocations: 75.28 kB / 446.4 MB, free: 43.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1754, allocations: 6.062 kB / 446.4 MB, free: 43.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003377/0.1758, allocations: 133.2 kB / 446.5 MB, free: 43.91 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.0006317/0.1764, allocations: 0.9978 MB / 447.5 MB, free: 43.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.098e-05/0.1765, allocations: 117.2 kB / 447.6 MB, free: 43.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1765, allocations: 0 / 447.6 MB, free: 43.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.693e-05/0.1765, allocations: 84.2 kB / 447.7 MB, free: 42.92 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.1766, allocations: 9.656 kB / 447.7 MB, free: 42.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000503/0.1771, allocations: 1.335 MB / 449.1 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.007e-05/0.1772, allocations: 58.02 kB / 449.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.182e-05/0.1772, allocations: 2.844 kB / 449.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.978e-05/0.1772, allocations: 8.5 kB / 449.1 MB, free: 41.49 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1772, allocations: 0 / 449.1 MB, free: 41.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01678/0.194, allocations: 5.238 MB / 454.4 MB, free: 40.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.169/7.363, allocations: 6.031 kB / 454.4 MB, free: 40.36 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_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_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions_res.csv: Error: Error opening file: ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.399033688940108]