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.00123/0.00123, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001347/0.001347, allocations: 209.4 kB / 24.51 MB, free: 3.941 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.389/1.389, allocations: 230.5 MB / 258.2 MB, free: 7.797 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.2173/0.2173, allocations: 46.95 MB / 361.6 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 83.81 kB / 0.4969 GB, free: 7.559 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2922, allocations: 66.09 MB / 0.5614 GB, free: 4.012 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001564/0.2937, allocations: 497.1 kB / 0.5619 GB, free: 3.527 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002824/0.2965, allocations: 2.008 MB / 0.5639 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.526e-05/0.2966, allocations: 0 / 0.5639 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.246e-05/0.2966, allocations: 3.938 kB / 0.5639 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.2966, allocations: 0 / 0.5639 GB, free: 1.496 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.001428/0.298, allocations: 0.5135 MB / 0.5644 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.099e-05/0.2981, allocations: 11.98 kB / 0.5644 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.736e-05/0.2981, allocations: 0 / 0.5644 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.474e-05/0.2981, allocations: 4 kB / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.476e-05/0.2981, allocations: 0 / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.28e-06/0.2981, allocations: 0 / 0.5644 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.2992, allocations: 0.694 MB / 0.5651 GB, free: 280 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.862e-06/0.2992, allocations: 0 / 0.5651 GB, free: 280 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.214e-05/0.2992, allocations: 7.984 kB / 0.5651 GB, free: 272 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005765/0.2998, allocations: 380.9 kB / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2998, allocations: 4 kB / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2998, allocations: 0 / 0.5654 GB, free: 15.89 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.626e-06/0.2998, allocations: 0 / 0.5654 GB, free: 15.89 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.0003992/0.3002, allocations: 347.3 kB / 0.5658 GB, free: 15.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.3002, allocations: 12.03 kB / 0.5658 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.317e-05/0.3002, allocations: 4.188 kB / 0.5658 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.925e-05/0.3003, allocations: 38.64 kB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.255e-05/0.3003, allocations: 0.9375 kB / 0.5658 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.739e-05/0.3004, allocations: 106.5 kB / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.3004, allocations: 384 / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-06/0.3004, allocations: 384 / 0.5659 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.3005, allocations: 67.33 kB / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.3005, allocations: 0 / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.3005, allocations: 0 / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.3005, allocations: 8 kB / 0.566 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.371e-05/0.3006, allocations: 29.7 kB / 0.566 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002376/0.3008, allocations: 203.9 kB / 0.5662 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.027e-05/0.3009, allocations: 48.3 kB / 0.5663 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.357e-05/0.3009, allocations: 38.62 kB / 0.5663 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.707e-06/0.3009, allocations: 4 kB / 0.5663 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.444e-05/0.301, allocations: 56.27 kB / 0.5664 GB, free: 14.78 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.301, allocations: 0 / 0.5664 GB, free: 14.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002512/0.3012, allocations: 126.7 kB / 0.5665 GB, free: 14.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.3013, allocations: 77.11 kB / 0.5666 GB, free: 14.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.977e-05/0.3013, allocations: 97.98 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.3013, allocations: 25.7 kB / 0.5667 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.326e-05/0.3014, allocations: 84.12 kB / 0.5668 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.3014, allocations: 3.984 kB / 0.5668 GB, free: 14.31 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.3014, allocations: 21.66 kB / 0.5668 GB, free: 14.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3015, allocations: 310.8 kB / 0.5671 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.818e-05/0.3016, allocations: 29.7 kB / 0.5671 GB, free: 13.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.029e-05/0.3016, allocations: 25.7 kB / 0.5671 GB, free: 13.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.969e-05/0.3016, allocations: 76.19 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3016, allocations: 4 kB / 0.5672 GB, free: 13.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.616e-05/0.3017, allocations: 101 kB / 0.5673 GB, free: 13.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.419e-05/0.3018, allocations: 33.7 kB / 0.5673 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.3018, allocations: 0 / 0.5673 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3018, allocations: 3.984 kB / 0.5673 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.446e-05/0.3018, allocations: 0 / 0.5673 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3018, allocations: 0 / 0.5673 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.3018, allocations: 0 / 0.5673 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.3018, allocations: 4 kB / 0.5673 GB, free: 13.64 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.202e-05/0.3019, allocations: 136.8 kB / 0.5675 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.338e-05/0.302, allocations: 8.031 kB / 0.5675 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.302, allocations: 7.156 kB / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.302, allocations: 0 / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.302, allocations: 0 / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.302, allocations: 0 / 0.5675 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.3022, allocations: 301 kB / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3022, allocations: 0 / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.446e-06/0.3023, allocations: 0 / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3023, allocations: 0 / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.3023, allocations: 0 / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.898e-06/0.3023, allocations: 4 kB / 0.5678 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3023, allocations: 4.031 kB / 0.5678 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.3024, allocations: 194.9 kB / 0.568 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-06/0.3024, allocations: 4 kB / 0.568 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.3024, allocations: 0 / 0.568 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.723e-05/0.3025, allocations: 0 / 0.568 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.281e-05/0.3025, allocations: 11.98 kB / 0.568 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.3025, allocations: 7.922 kB / 0.568 GB, free: 12.87 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.786e-05/0.3025, allocations: 79.22 kB / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3025, allocations: 0 / 0.5681 GB, free: 12.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004263/0.303, allocations: 131.5 kB / 0.5682 GB, free: 12.66 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.001157/0.3041, allocations: 0.9725 MB / 0.5691 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.3043, allocations: 118.8 kB / 0.5693 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.3043, allocations: 3.938 kB / 0.5693 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.706e-05/0.3043, allocations: 81.11 kB / 0.5693 GB, free: 11.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/0.3045, allocations: 8.156 kB / 0.5693 GB, free: 11.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.3056, allocations: 1.34 MB / 0.5707 GB, free: 9.941 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.158e-05/0.3057, allocations: 51.36 kB / 0.5707 GB, free: 9.871 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.024e-05/0.3057, allocations: 4 kB / 0.5707 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.705e-05/0.3057, allocations: 7.438 kB / 0.5707 GB, free: 9.859 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3057, allocations: 0 / 0.5707 GB, free: 9.859 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.3305, allocations: 4.738 MB / 0.5753 GB, free: 5.238 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.14, allocations: 10.95 kB / 0.5754 GB, free: 5.23 MB / 414.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.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_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: 13.876029073027894]