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.001322/0.001322, 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.001417/0.001417, allocations: 212.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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2743/0.2743, allocations: 46.96 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] 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.002384/0.002384, allocations: 75.89 kB / 0.4961 GB, free: 7.715 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.4016, allocations: 66.03 MB / 0.5606 GB, free: 4.246 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001649/0.4033, allocations: 0.4921 MB / 0.5611 GB, free: 3.754 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.4064, allocations: 2.008 MB / 0.563 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.545e-05/0.4064, allocations: 4 kB / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.252e-05/0.4064, allocations: 0 / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.56e-06/0.4064, allocations: 0 / 0.563 GB, free: 1.723 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.001565/0.408, allocations: 0.5217 MB / 0.5635 GB, free: 1.203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.757e-05/0.4081, allocations: 4 kB / 0.5635 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.199e-05/0.4081, allocations: 4 kB / 0.5635 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.606e-05/0.4081, allocations: 0 / 0.5635 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.84e-05/0.4081, allocations: 0 / 0.5635 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-06/0.4081, allocations: 4 kB / 0.5636 GB, free: 1.191 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.4092, allocations: 0.6393 MB / 0.5642 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.096e-05/0.4093, allocations: 3.984 kB / 0.5642 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.903e-05/0.4093, allocations: 7.938 kB / 0.5642 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005675/0.4098, allocations: 381 kB / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.4099, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4099, allocations: 0 / 0.5646 GB, free: 172 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.4099, allocations: 3.938 kB / 0.5646 GB, free: 168 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.000456/0.4103, allocations: 343.3 kB / 0.5649 GB, free: 15.79 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.4104, allocations: 12.03 kB / 0.5649 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.911e-05/0.4104, allocations: 38.69 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.339e-05/0.4104, allocations: 0.9375 kB / 0.5649 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.92e-05/0.4105, allocations: 110.5 kB / 0.565 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.4105, allocations: 4.375 kB / 0.565 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.303e-06/0.4105, allocations: 384 / 0.565 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.4107, allocations: 63.53 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.4107, allocations: 0 / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.013e-06/0.4107, allocations: 0 / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.4107, allocations: 3.984 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.411e-05/0.4107, allocations: 29.7 kB / 0.5651 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002413/0.411, allocations: 200 kB / 0.5653 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.587e-05/0.411, allocations: 52.23 kB / 0.5654 GB, free: 15.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.179e-05/0.4111, allocations: 42.62 kB / 0.5654 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.4111, allocations: 4 kB / 0.5654 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.873e-05/0.4111, allocations: 56.27 kB / 0.5655 GB, free: 15.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.4111, allocations: 0 / 0.5655 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002508/0.4114, allocations: 130.7 kB / 0.5656 GB, free: 14.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.937e-05/0.4114, allocations: 77.11 kB / 0.5657 GB, free: 14.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.204e-05/0.4115, allocations: 93.86 kB / 0.5658 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.4115, allocations: 25.7 kB / 0.5658 GB, free: 14.68 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.278e-05/0.4115, allocations: 80.14 kB / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.118e-05/0.4116, allocations: 0 / 0.5659 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.582e-05/0.4116, allocations: 25.83 kB / 0.5659 GB, free: 14.56 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.4117, allocations: 310.8 kB / 0.5662 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.685e-05/0.4118, allocations: 33.64 kB / 0.5662 GB, free: 14.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.877e-05/0.4118, allocations: 25.7 kB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.95e-05/0.4118, allocations: 68.27 kB / 0.5663 GB, free: 14.1 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4118, 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.84e-05/0.4119, allocations: 101 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.412, allocations: 33.7 kB / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.412, allocations: 0 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.412, allocations: 96 / 0.5664 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.726e-05/0.412, allocations: 4 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.348e-06/0.412, allocations: 0 / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.74e-05/0.412, allocations: 3.984 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.412, allocations: 0 / 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 0.0001016/0.4121, allocations: 139.5 kB / 0.5666 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.4122, allocations: 0 / 0.5666 GB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.199e-05/0.4122, allocations: 11.16 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.4122, allocations: 3.938 kB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.4122, allocations: 0 / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.4122, allocations: 0 / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002888/0.4125, allocations: 309 kB / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4125, allocations: 0 / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-06/0.4125, allocations: 0 / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4125, allocations: 0 / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.4125, allocations: 0 / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.4125, allocations: 0 / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.4125, allocations: 4 kB / 0.5669 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.4126, allocations: 194.9 kB / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-06/0.4127, allocations: 4 kB / 0.5671 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.4127, allocations: 3.984 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.876e-05/0.4127, allocations: 4.062 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.748e-05/0.4127, allocations: 0 / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.4127, allocations: 4 kB / 0.5671 GB, free: 13.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.645e-05/0.4128, allocations: 75.28 kB / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4128, allocations: 0 / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004498/0.4132, allocations: 139.5 kB / 0.5673 GB, free: 12.95 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.001131/0.4143, allocations: 0.9679 MB / 0.5682 GB, free: 11.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000152/0.4145, allocations: 118.8 kB / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4145, allocations: 0 / 0.5684 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.111e-05/0.4146, allocations: 85.05 kB / 0.5684 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.4148, allocations: 4 kB / 0.5684 GB, free: 11.69 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001165/0.4159, allocations: 1.336 MB / 0.5697 GB, free: 10.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.776e-05/0.416, allocations: 63.48 kB / 0.5698 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.028e-05/0.416, allocations: 0 / 0.5698 GB, free: 10.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.325e-05/0.416, allocations: 11.44 kB / 0.5698 GB, free: 10.14 MB / 414.1 MB Notification: Performance of SimCode: time 6.82e-07/0.416, allocations: 0 / 0.5698 GB, free: 10.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03422/0.4502, allocations: 5.074 MB / 0.5748 GB, free: 5.207 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.7, allocations: 3.984 kB / 0.5748 GB, free: 5.203 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.699925196822733]