Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0009555/0.0009555, 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.0009242/0.0009242, 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.8731/0.8731, allocations: 177.1 MB / 204.3 MB, free: 5.719 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.242/0.242, allocations: 34.25 MB / 294.9 MB, free: 0.7305 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.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 442.2 MB, free: 1.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.134e-05/3.317e-05, allocations: 4.25 kB / 442.2 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001303/0.001336, allocations: 0.5011 MB / 442.7 MB, free: 1.18 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1786/0.1799, allocations: 2.008 MB / 444.7 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.761e-05/0.18, allocations: 1.062 kB / 444.7 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.055e-05/0.18, allocations: 0 / 444.7 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 9.228e-06/0.18, allocations: 0 / 444.7 MB, free: 43.15 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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.001158/0.1812, allocations: 0.5266 MB / 445.2 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.567e-05/0.1812, allocations: 0 / 445.2 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.547e-05/0.1813, allocations: 7.031 kB / 445.2 MB, free: 43.08 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.316e-05/0.1813, allocations: 0 / 445.2 MB, free: 43.08 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.208e-05/0.1813, allocations: 0 / 445.2 MB, free: 43.08 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.1813, allocations: 0 / 445.2 MB, free: 43.08 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007871/0.1821, allocations: 0.643 MB / 445.9 MB, free: 43.04 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.143e-05/0.1821, allocations: 2.875 kB / 445.9 MB, free: 43.04 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.24e-05/0.1821, allocations: 0 / 445.9 MB, free: 43.04 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004228/0.1826, allocations: 471.4 kB / 446.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1826, allocations: 0 / 446.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1826, allocations: 0 / 446.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.1826, allocations: 0 / 446.3 MB, free: 42.99 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.0003053/0.1829, allocations: 345.3 kB / 446.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1829, allocations: 8.844 kB / 446.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.435e-05/0.183, allocations: 37.45 kB / 446.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.309e-05/0.183, allocations: 8.875 kB / 446.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.509e-05/0.183, allocations: 104.7 kB / 446.8 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.183, allocations: 384 / 446.8 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.183, allocations: 3.156 kB / 446.8 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.326e-05/0.1831, allocations: 58.08 kB / 446.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.1831, allocations: 192 / 446.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-06/0.1831, allocations: 384 / 446.9 MB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.1831, allocations: 3.938 kB / 446.9 MB, free: 42.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.975e-05/0.1832, allocations: 31.17 kB / 446.9 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.1833, allocations: 207.9 kB / 447.1 MB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.639e-05/0.1834, allocations: 51.78 kB / 447.2 MB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.1834, allocations: 36.77 kB / 447.2 MB, free: 42.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.107e-06/0.1834, allocations: 2.656 kB / 447.2 MB, free: 42.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.1834, allocations: 63.33 kB / 447.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.1834, allocations: 0 / 447.3 MB, free: 41.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001528/0.1836, allocations: 126.3 kB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.1836, allocations: 77.11 kB / 447.5 MB, free: 41.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.132e-05/0.1836, allocations: 89.86 kB / 447.5 MB, free: 41.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-06/0.1836, allocations: 28.2 kB / 447.6 MB, free: 41.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.7e-06/0.1836, allocations: 84.27 kB / 447.7 MB, free: 41.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.1836, allocations: 8.594 kB / 447.7 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.015e-05/0.1836, allocations: 12.84 kB / 447.7 MB, free: 41.53 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.396e-05/0.1837, allocations: 313.2 kB / 448 MB, free: 41.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.1837, allocations: 28.55 kB / 448 MB, free: 41.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.956e-06/0.1837, allocations: 33.39 kB / 448 MB, free: 41.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.273e-05/0.1837, allocations: 67.16 kB / 448.1 MB, free: 41.08 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1837, allocations: 2.594 kB / 448.1 MB, free: 41.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.749e-05/0.1838, allocations: 100.2 kB / 448.2 MB, free: 40.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.1838, allocations: 34.95 kB / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1838, allocations: 6.625 kB / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.1838, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.551e-05/0.1838, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.1838, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.269e-05/0.1838, allocations: 0 / 448.2 MB, free: 40.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.1839, allocations: 2.688 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.038e-05/0.1839, allocations: 141.1 kB / 448.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.1839, allocations: 3.938 kB / 448.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.423e-05/0.1839, allocations: 3.156 kB / 448.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1839, allocations: 3.672 kB / 448.4 MB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.1839, allocations: 4 kB / 448.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1839, allocations: 0 / 448.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.184, allocations: 302.2 kB / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1841, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-06/0.1841, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.062e-06/0.1841, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.1841, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1841, allocations: 2.719 kB / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1841, allocations: 0 / 448.7 MB, free: 40.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.097e-05/0.1841, allocations: 193.9 kB / 448.9 MB, free: 40.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.7e-06/0.1841, allocations: 10.97 kB / 448.9 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-06/0.1841, allocations: 1.125 kB / 448.9 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.421e-05/0.1842, allocations: 0 / 448.9 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.531e-05/0.1842, allocations: 9.641 kB / 448.9 MB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.1842, allocations: 0 / 448.9 MB, free: 40.25 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.205e-06/0.1842, allocations: 75.28 kB / 449 MB, free: 40.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1842, allocations: 2.688 kB / 449 MB, free: 40.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002747/0.1845, allocations: 136.2 kB / 449.1 MB, free: 40.15 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.0006255/0.1851, allocations: 0.9958 MB / 450.1 MB, free: 39.35 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.125e-05/0.1852, allocations: 118.1 kB / 450.2 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1852, allocations: 0 / 450.2 MB, free: 39.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.444e-05/0.1852, allocations: 83.95 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.0001368/0.1853, allocations: 5.906 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.0005217/0.1858, allocations: 1.341 MB / 451.7 MB, free: 37.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.832e-05/0.1859, allocations: 57.56 kB / 451.7 MB, free: 37.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.177e-05/0.1859, allocations: 2.875 kB / 451.7 MB, free: 37.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.906e-05/0.1859, allocations: 8.5 kB / 451.7 MB, free: 37.7 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1859, allocations: 0 / 451.7 MB, free: 37.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.2038, allocations: 5.247 MB / 457 MB, free: 36.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.064/7.268, allocations: 10.09 kB / 457 MB, free: 36.53 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.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.1.0_ModelicaTest.Math.Random.TestDistributions_res.csv: Error: Error opening file: ModelicaTest_4.1.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.219052008353174]