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.001331/0.001331, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001429/0.001429, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.454/1.454, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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.2321/0.2321, allocations: 44.92 MB / 359.6 MB, free: 6.289 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 63.91 kB / 0.4939 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3728, allocations: 65.47 MB / 0.5578 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001767/0.3746, allocations: 0.4885 MB / 0.5583 GB, free: 7.156 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003829/0.3784, allocations: 2.14 MB / 0.5604 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.572e-05/0.3784, allocations: 0 / 0.5604 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.765e-05/0.3785, allocations: 0 / 0.5604 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.452e-06/0.3785, allocations: 0 / 0.5604 GB, free: 5.137 MB / 398.1 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.001534/0.38, allocations: 0.5218 MB / 0.5609 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.237e-05/0.3801, allocations: 8 kB / 0.5609 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.866e-05/0.3801, allocations: 0 / 0.5609 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.645e-05/0.3801, allocations: 0 / 0.5609 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.2e-05/0.3801, allocations: 3.938 kB / 0.5609 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.053e-06/0.3801, allocations: 0 / 0.5609 GB, free: 4.605 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001286/0.3814, allocations: 0.7642 MB / 0.5616 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.225e-06/0.3814, allocations: 0 / 0.5616 GB, free: 3.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.637e-05/0.3815, allocations: 7.938 kB / 0.5616 GB, free: 3.832 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000644/0.3821, allocations: 397.1 kB / 0.562 GB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3821, allocations: 0 / 0.562 GB, free: 3.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3821, allocations: 3.938 kB / 0.562 GB, free: 3.445 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.3821, allocations: 0 / 0.562 GB, free: 3.445 MB / 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.0005028/0.3826, allocations: 343.3 kB / 0.5623 GB, free: 3.074 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3827, allocations: 8.031 kB / 0.5624 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.806e-05/0.3827, allocations: 192 / 0.5624 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.641e-05/0.3828, allocations: 38.69 kB / 0.5624 GB, free: 3.02 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.3828, allocations: 8.938 kB / 0.5624 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.785e-05/0.3829, allocations: 102.5 kB / 0.5625 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.3829, allocations: 384 / 0.5625 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.3829, allocations: 384 / 0.5625 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.383, allocations: 41.62 kB / 0.5625 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.383, allocations: 3.938 kB / 0.5625 GB, free: 2.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.3831, allocations: 4 kB / 0.5625 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3831, allocations: 0 / 0.5625 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.184e-05/0.3831, allocations: 0 / 0.5625 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002692/0.3834, allocations: 208 kB / 0.5627 GB, free: 2.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.192e-05/0.3834, allocations: 18.61 kB / 0.5628 GB, free: 2.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.657e-05/0.3834, allocations: 16.84 kB / 0.5628 GB, free: 2.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.3835, allocations: 4 kB / 0.5628 GB, free: 2.535 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.764e-05/0.3835, allocations: 64.2 kB / 0.5628 GB, free: 2.457 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.3835, allocations: 0 / 0.5628 GB, free: 2.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002093/0.3837, allocations: 71.39 kB / 0.5629 GB, free: 2.375 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.3838, allocations: 81.11 kB / 0.563 GB, free: 2.277 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.914e-05/0.3839, allocations: 89.86 kB / 0.5631 GB, free: 2.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.3839, allocations: 25.7 kB / 0.5631 GB, free: 2.148 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.281e-05/0.3839, allocations: 80.14 kB / 0.5632 GB, free: 2.066 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.132e-05/0.3839, allocations: 0 / 0.5632 GB, free: 2.066 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.3839, allocations: 13.72 kB / 0.5632 GB, free: 2.047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3841, allocations: 315 kB / 0.5635 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.571e-05/0.3841, allocations: 15.94 kB / 0.5635 GB, free: 1.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.069e-05/0.3841, allocations: 7.922 kB / 0.5635 GB, free: 1.707 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.782e-05/0.3842, allocations: 68.2 kB / 0.5636 GB, free: 1.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3842, allocations: 4 kB / 0.5636 GB, free: 1.621 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.823e-05/0.3843, allocations: 63.36 kB / 0.5636 GB, free: 1.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.119e-05/0.3843, allocations: 33.69 kB / 0.5637 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-06/0.3843, allocations: 0 / 0.5637 GB, free: 1.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.3844, allocations: 4 kB / 0.5637 GB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.502e-05/0.3844, allocations: 4.094 kB / 0.5637 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.179e-06/0.3844, allocations: 0 / 0.5637 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.3844, allocations: 0 / 0.5637 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.3844, allocations: 0 / 0.5637 GB, free: 1.5 MB / 398.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.0001201/0.3845, allocations: 143.5 kB / 0.5638 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.3845, allocations: 0 / 0.5638 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.3846, allocations: 11.08 kB / 0.5638 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.3846, allocations: 0 / 0.5638 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3846, allocations: 0 / 0.5638 GB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.3846, allocations: 7.984 kB / 0.5638 GB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002848/0.3849, allocations: 267.4 kB / 0.5641 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3849, allocations: 0 / 0.5641 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.336e-06/0.3849, allocations: 0 / 0.5641 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3849, allocations: 4 kB / 0.5641 GB, free: 1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.3849, allocations: 4 kB / 0.5641 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.3849, allocations: 0 / 0.5641 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3849, allocations: 7.922 kB / 0.5641 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.385, allocations: 173.2 kB / 0.5643 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.017e-06/0.385, allocations: 7.938 kB / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.385, allocations: 0 / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.819e-05/0.3851, allocations: 0 / 0.5643 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.115e-05/0.3851, allocations: 3.984 kB / 0.5643 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-06/0.3851, allocations: 4 kB / 0.5643 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.791e-05/0.3851, allocations: 79.22 kB / 0.5644 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3851, allocations: 0 / 0.5644 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004415/0.3856, allocations: 127.6 kB / 0.5645 GB, free: 0.5781 MB / 398.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.001211/0.3868, allocations: 0.9192 MB / 0.5654 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.3869, allocations: 71.42 kB / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3869, allocations: 0 / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.212e-05/0.387, allocations: 55.41 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.3872, allocations: 6.344 kB / 0.5655 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.3883, allocations: 1.207 MB / 0.5667 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.3886, allocations: 0.6729 MB / 0.5673 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.37e-05/0.3886, allocations: 3.984 kB / 0.5673 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.3887, allocations: 11.5 kB / 0.5674 GB, free: 13.47 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3887, allocations: 0 / 0.5674 GB, free: 13.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02529/0.4139, allocations: 4.665 MB / 0.5719 GB, free: 8.945 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.51, allocations: 19.19 kB / 0.5719 GB, free: 8.934 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.452898648974951]