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.001329/0.001329, allocations: 115 kB / 20.48 MB, free: 1.129 MB / 14.72 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.001432/0.001432, allocations: 211.3 kB / 23.77 MB, free: 4.195 MB / 14.72 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 1.417/1.417, allocations: 230.5 MB / 257.4 MB, free: 7.738 MB / 206.1 MB " [Timeout remaining time 178] 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.2222/0.2222, allocations: 46.93 MB / 360.8 MB, free: 3.934 MB / 286.1 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 0.002441/0.002441, allocations: 75.88 kB / 0.4962 GB, free: 7.543 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3111, allocations: 66.09 MB / 0.5607 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00186/0.313, allocations: 0.4918 MB / 0.5612 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003482/0.3165, allocations: 2.011 MB / 0.5632 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.576e-05/0.3165, allocations: 0 / 0.5632 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.477e-05/0.3165, allocations: 0 / 0.5632 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.702e-06/0.3165, allocations: 0 / 0.5632 GB, free: 1.512 MB / 398.1 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.001694/0.3182, allocations: 0.5175 MB / 0.5637 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.262e-05/0.3183, allocations: 0 / 0.5637 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.3183, allocations: 4 kB / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.446e-05/0.3183, allocations: 0 / 0.5637 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.503e-05/0.3183, allocations: 4 kB / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.721e-06/0.3183, allocations: 0 / 0.5637 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.3195, allocations: 0.6472 MB / 0.5643 GB, free: 348 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.424e-06/0.3195, allocations: 0 / 0.5643 GB, free: 348 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.486e-05/0.3195, allocations: 3.938 kB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000574/0.3201, allocations: 384.9 kB / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3201, allocations: 0 / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3201, allocations: 3.938 kB / 0.5647 GB, free: 15.96 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.3201, allocations: 0 / 0.5647 GB, free: 15.96 MB / 414.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.0004464/0.3205, allocations: 347.3 kB / 0.565 GB, free: 15.58 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3206, allocations: 8.031 kB / 0.5651 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.409e-05/0.3206, allocations: 38.69 kB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.443e-05/0.3207, allocations: 4.938 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.415e-05/0.3207, allocations: 110.5 kB / 0.5652 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/0.3208, allocations: 384 / 0.5652 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.353e-06/0.3208, allocations: 384 / 0.5652 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.3209, allocations: 63.47 kB / 0.5653 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.3209, allocations: 8 kB / 0.5653 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.3209, allocations: 0 / 0.5653 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3209, allocations: 0 / 0.5653 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.448e-05/0.3209, allocations: 29.69 kB / 0.5653 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002279/0.3212, allocations: 200 kB / 0.5655 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.538e-05/0.3212, allocations: 56.3 kB / 0.5655 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.612e-05/0.3213, allocations: 38.62 kB / 0.5656 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.3213, allocations: 3.938 kB / 0.5656 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.125e-05/0.3213, allocations: 56.27 kB / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3213, allocations: 0 / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002165/0.3215, allocations: 122.8 kB / 0.5658 GB, free: 14.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.3216, allocations: 81.11 kB / 0.5658 GB, free: 14.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.916e-05/0.3217, allocations: 93.86 kB / 0.5659 GB, free: 14.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.3217, allocations: 25.7 kB / 0.5659 GB, free: 14.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.3217, allocations: 80.14 kB / 0.566 GB, free: 14.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.3217, allocations: 128 / 0.566 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.3218, allocations: 21.66 kB / 0.566 GB, free: 14.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3219, allocations: 314.8 kB / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.904e-05/0.3219, allocations: 33.7 kB / 0.5664 GB, free: 14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.234e-05/0.322, allocations: 33.64 kB / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.108e-05/0.322, allocations: 64.27 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.322, allocations: 3.938 kB / 0.5665 GB, free: 13.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.95e-05/0.3221, allocations: 93.05 kB / 0.5666 GB, free: 13.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.026e-05/0.3221, allocations: 33.7 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.3221, allocations: 0 / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.3222, allocations: 4.094 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.385e-05/0.3222, allocations: 0 / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.3222, allocations: 0 / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.679e-05/0.3222, allocations: 4 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.925e-06/0.3222, allocations: 4 kB / 0.5666 GB, free: 13.72 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 0.0001032/0.3223, allocations: 147.4 kB / 0.5667 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.3223, allocations: 0 / 0.5667 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.586e-05/0.3223, allocations: 7.094 kB / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.3223, allocations: 0 / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3223, allocations: 0 / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.3223, allocations: 4 kB / 0.5668 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002717/0.3226, allocations: 297.1 kB / 0.567 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.3226, allocations: 0 / 0.567 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.69e-06/0.3226, allocations: 3.984 kB / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.3226, allocations: 0 / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.4e-06/0.3226, allocations: 4 kB / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3226, allocations: 0 / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3226, allocations: 0 / 0.567 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.3228, allocations: 202.8 kB / 0.5672 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.777e-06/0.3228, allocations: 0 / 0.5672 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.066e-05/0.3228, allocations: 4.062 kB / 0.5672 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.425e-05/0.3228, allocations: 8 kB / 0.5672 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.3229, allocations: 0 / 0.5672 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-06/0.3229, allocations: 4 kB / 0.5673 GB, free: 12.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.18e-05/0.3229, allocations: 75.28 kB / 0.5673 GB, free: 12.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3229, allocations: 0 / 0.5673 GB, free: 12.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004869/0.3234, allocations: 139.5 kB / 0.5675 GB, free: 12.73 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.001196/0.3246, allocations: 0.9717 MB / 0.5684 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001421/0.3247, allocations: 114.8 kB / 0.5685 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3247, allocations: 0 / 0.5685 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.618e-05/0.3248, allocations: 89.11 kB / 0.5686 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001814/0.325, allocations: 6.125 kB / 0.5686 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.3261, allocations: 1.34 MB / 0.5699 GB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.16e-05/0.3262, allocations: 59.39 kB / 0.57 GB, free: 9.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.105e-05/0.3262, allocations: 0 / 0.57 GB, free: 9.938 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.048e-05/0.3262, allocations: 7.438 kB / 0.57 GB, free: 9.93 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3262, allocations: 0 / 0.57 GB, free: 9.93 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.3601, allocations: 5.153 MB / 0.575 GB, free: 4.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.66, allocations: 7.609 kB / 0.575 GB, free: 4.871 MB / 414.1 MB " [Timeout remaining time 648] (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/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_trunk_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.52018681499976]