Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.00132, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001227/0.001227, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9534/0.9534, allocations: 177 MB / 204.1 MB, free: 5.758 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2554/0.2554, allocations: 34.24 MB / 294.8 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 3.938 kB / 442.1 MB, free: 1.59 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.695e-05/1.865e-05, allocations: 6.281 kB / 442.2 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001315/0.001334, allocations: 0.5036 MB / 442.7 MB, free: 1.082 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.209/0.2103, allocations: 2.006 MB / 444.7 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.891e-05/0.2103, allocations: 1.281 kB / 444.7 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.823e-05/0.2104, allocations: 0 / 444.7 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 7.975e-06/0.2104, allocations: 0 / 444.7 MB, free: 43.2 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001101/0.2115, allocations: 0.5304 MB / 445.2 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.985e-05/0.2115, allocations: 0 / 445.2 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.657e-05/0.2116, allocations: 2.969 kB / 445.2 MB, free: 43.13 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.075e-05/0.2116, allocations: 3.938 kB / 445.2 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.145e-05/0.2116, allocations: 0 / 445.2 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.2116, allocations: 0 / 445.2 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006977/0.2123, allocations: 0.6454 MB / 445.8 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 8.807e-06/0.2123, allocations: 3.984 kB / 445.8 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.287e-05/0.2124, allocations: 2.812 kB / 445.9 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004319/0.2128, allocations: 458.7 kB / 446.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2128, allocations: 3.938 kB / 446.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2128, allocations: 3.938 kB / 446.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.2128, allocations: 4 kB / 446.3 MB, free: 42.98 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.0003173/0.2131, allocations: 339.5 kB / 446.6 MB, free: 42.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.2132, allocations: 8.844 kB / 446.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.132e-05/0.2132, allocations: 40.64 kB / 446.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.2133, allocations: 0.9375 kB / 446.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.488e-05/0.2133, allocations: 102.6 kB / 446.8 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.2133, allocations: 3.281 kB / 446.8 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-06/0.2133, allocations: 384 / 446.8 MB, free: 42.49 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.404e-05/0.2134, allocations: 61.06 kB / 446.9 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.2134, allocations: 192 / 446.9 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.2135, allocations: 8.125 kB / 446.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2135, allocations: 0 / 446.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.378e-05/0.2135, allocations: 35.3 kB / 446.9 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.2136, allocations: 194.3 kB / 447.1 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.76e-05/0.2137, allocations: 51.09 kB / 447.1 MB, free: 42.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.282e-05/0.2137, allocations: 37 kB / 447.2 MB, free: 42.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.2137, allocations: 10.75 kB / 447.2 MB, free: 42.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.2138, allocations: 60.2 kB / 447.2 MB, free: 41.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 8.52e-07/0.2138, allocations: 0 / 447.2 MB, free: 41.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001724/0.2139, allocations: 132.5 kB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.638e-05/0.214, allocations: 77.11 kB / 447.4 MB, free: 41.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.521e-05/0.214, allocations: 89.86 kB / 447.5 MB, free: 41.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-06/0.214, allocations: 25.7 kB / 447.6 MB, free: 41.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.418e-06/0.214, allocations: 83.19 kB / 447.6 MB, free: 41.55 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.214, allocations: 7.922 kB / 447.6 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.214, allocations: 16.53 kB / 447.7 MB, free: 41.53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.404e-05/0.2141, allocations: 310.8 kB / 448 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.266e-05/0.2141, allocations: 28.58 kB / 448 MB, free: 41.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.608e-06/0.2141, allocations: 33.78 kB / 448 MB, free: 41.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.988e-05/0.2141, allocations: 69.42 kB / 448.1 MB, free: 41.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2141, allocations: 0 / 448.1 MB, free: 41.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.217e-05/0.2142, allocations: 103.9 kB / 448.2 MB, free: 40.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.2142, allocations: 31.55 kB / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.2142, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.2142, allocations: 2.875 kB / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.565e-05/0.2142, allocations: 2.688 kB / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.2142, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.2143, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.2143, allocations: 2.906 kB / 448.2 MB, free: 40.94 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.757e-05/0.2143, allocations: 149 kB / 448.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.2143, allocations: 3.938 kB / 448.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.626e-05/0.2143, allocations: 3.156 kB / 448.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2144, allocations: 0 / 448.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2144, allocations: 0 / 448.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.2144, allocations: 2.875 kB / 448.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.2145, allocations: 300.8 kB / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2145, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.285e-06/0.2145, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.2145, allocations: 4.922 kB / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2145, allocations: 6.844 kB / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.41e-07/0.2145, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2145, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.372e-05/0.2146, allocations: 196.1 kB / 448.9 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.117e-06/0.2146, allocations: 6.938 kB / 448.9 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.668e-06/0.2146, allocations: 3.469 kB / 448.9 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.343e-05/0.2146, allocations: 0 / 448.9 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.815e-05/0.2146, allocations: 6.312 kB / 448.9 MB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.2146, allocations: 2.375 kB / 448.9 MB, free: 40.24 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.888e-06/0.2146, allocations: 75.28 kB / 449 MB, free: 40.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2146, allocations: 4.031 kB / 449 MB, free: 40.16 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002751/0.2149, allocations: 136.2 kB / 449.1 MB, free: 40.14 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.0006422/0.2155, allocations: 0.9739 MB / 450.1 MB, free: 39.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.884e-05/0.2156, allocations: 121.7 kB / 450.2 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.2156, allocations: 4.094 kB / 450.2 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.868e-05/0.2157, allocations: 82.58 kB / 450.3 MB, free: 39.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001395/0.2158, allocations: 2.875 kB / 450.3 MB, free: 39.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005283/0.2163, allocations: 1.335 MB / 451.6 MB, free: 37.76 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.306e-05/0.2164, allocations: 57.59 kB / 451.7 MB, free: 37.69 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.018e-05/0.2164, allocations: 0 / 451.7 MB, free: 37.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.105e-05/0.2164, allocations: 11.28 kB / 451.7 MB, free: 37.68 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/0.2164, allocations: 0 / 451.7 MB, free: 37.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02083/0.2372, allocations: 5.246 MB / 456.9 MB, free: 36.51 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.165/7.403, allocations: 3.938 kB / 457 MB, free: 36.51 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.csv: Error: Error opening file: ModelicaTest_trunk_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.524007470346987]