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.001826/0.001826, allocations: 107.2 kB / 20.44 MB, free: 1.207 MB / 14.72 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.00155/0.00155, allocations: 211.4 kB / 23.73 MB, free: 4.41 MB / 14.72 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 1.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] 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.2267/0.2267, allocations: 46.97 MB / 360.9 MB, free: 4.039 MB / 286.1 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 0.002273/0.002273, allocations: 63.89 kB / 0.4961 GB, free: 7.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3482/0.3505, allocations: 66.04 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001712/0.3522, allocations: 0.4971 MB / 0.5611 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003088/0.3553, allocations: 2.004 MB / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.484e-05/0.3553, allocations: 0 / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.3553, allocations: 0 / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.3553, allocations: 0 / 0.563 GB, free: 1.727 MB / 398.1 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.001485/0.3568, allocations: 0.5177 MB / 0.5635 GB, free: 1.211 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.058e-05/0.3568, allocations: 4 kB / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.942e-05/0.3569, allocations: 0 / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.042e-05/0.3569, allocations: 0 / 0.5635 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.241e-05/0.3569, allocations: 3.984 kB / 0.5635 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-06/0.3569, allocations: 4 kB / 0.5635 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00112/0.358, allocations: 0.6472 MB / 0.5642 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.358, allocations: 0 / 0.5642 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.185e-05/0.3581, allocations: 3.938 kB / 0.5642 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005824/0.3586, allocations: 381 kB / 0.5645 GB, free: 180 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3587, allocations: 3.984 kB / 0.5645 GB, free: 176 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3587, allocations: 4 kB / 0.5645 GB, free: 172 kB / 398.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3587, allocations: 0 / 0.5645 GB, free: 172 kB / 398.1 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.0004463/0.3591, allocations: 343.3 kB / 0.5649 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3591, allocations: 8.031 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.012e-05/0.3592, allocations: 42.7 kB / 0.5649 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.274e-05/0.3592, allocations: 0.9375 kB / 0.5649 GB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.964e-05/0.3593, allocations: 110.5 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.3593, allocations: 384 / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.846e-06/0.3593, allocations: 4.375 kB / 0.565 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.3594, allocations: 63.52 kB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.3594, allocations: 4 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.685e-06/0.3595, allocations: 0 / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3595, allocations: 0 / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.571e-05/0.3595, allocations: 33.7 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002448/0.3597, allocations: 203.9 kB / 0.5653 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.253e-05/0.3598, allocations: 48.28 kB / 0.5654 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.968e-05/0.3599, allocations: 34.62 kB / 0.5654 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.3599, allocations: 0 / 0.5654 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/0.3599, allocations: 64.2 kB / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3599, allocations: 4 kB / 0.5655 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002267/0.3601, allocations: 126.7 kB / 0.5656 GB, free: 14.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/0.3602, allocations: 81.11 kB / 0.5657 GB, free: 14.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.749e-05/0.3602, allocations: 93.84 kB / 0.5658 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.3603, allocations: 25.7 kB / 0.5658 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.3e-05/0.3603, allocations: 80.14 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.3603, allocations: 4 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.3603, allocations: 13.66 kB / 0.5659 GB, free: 14.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3605, allocations: 318.8 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.331e-05/0.3605, allocations: 25.7 kB / 0.5662 GB, free: 14.22 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.326e-05/0.3605, allocations: 33.83 kB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.786e-05/0.3606, allocations: 68.25 kB / 0.5663 GB, free: 14.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.3606, allocations: 3.938 kB / 0.5663 GB, free: 14.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.395e-05/0.3607, allocations: 97 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.757e-05/0.3607, allocations: 40.03 kB / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.3607, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.3607, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.421e-05/0.3607, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.3608, allocations: 4 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.3608, allocations: 0 / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-06/0.3608, allocations: 4.094 kB / 0.5664 GB, free: 13.93 MB / 414.1 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 9.284e-05/0.3609, allocations: 139.5 kB / 0.5666 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.072e-05/0.3609, allocations: 0 / 0.5666 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.934e-05/0.3609, allocations: 3.156 kB / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.3609, allocations: 3.984 kB / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3609, allocations: 0 / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3609, allocations: 3.984 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/0.3612, allocations: 301 kB / 0.5669 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3612, allocations: 0 / 0.5669 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.49e-06/0.3612, allocations: 4 kB / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.3612, allocations: 4.031 kB / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.3612, allocations: 0 / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.3612, allocations: 0 / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3612, allocations: 0 / 0.5669 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000168/0.3614, allocations: 198.9 kB / 0.5671 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.424e-06/0.3614, allocations: 4 kB / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.3614, allocations: 0 / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.96e-05/0.3614, allocations: 8 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.876e-05/0.3614, allocations: 3.984 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.3614, allocations: 0 / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.357e-05/0.3615, allocations: 79.31 kB / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3615, allocations: 3.938 kB / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000415/0.3619, allocations: 139.4 kB / 0.5673 GB, free: 12.94 MB / 414.1 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.001135/0.363, allocations: 0.9603 MB / 0.5682 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001525/0.3632, allocations: 122.8 kB / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.3632, allocations: 4 kB / 0.5684 GB, free: 11.79 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.744e-05/0.3633, allocations: 85.05 kB / 0.5684 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.3634, allocations: 0 / 0.5684 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.3646, allocations: 1.34 MB / 0.5697 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.655e-05/0.3646, allocations: 55.36 kB / 0.5698 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.011e-05/0.3646, allocations: 0 / 0.5698 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.373e-05/0.3647, allocations: 7.438 kB / 0.5698 GB, free: 10.15 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3647, allocations: 4.188 kB / 0.5698 GB, free: 10.15 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03162/0.3963, allocations: 5.084 MB / 0.5748 GB, free: 5.199 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.8, allocations: 0 / 0.5748 GB, free: 5.199 MB / 414.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.879407385829836]