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.001709/0.001709, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002028/0.002028, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.499/1.499, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.279/0.279, allocations: 46.94 MB / 360.9 MB, free: 4.055 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.001988/0.001988, allocations: 67.89 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3687/0.3707, allocations: 66.04 MB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001846/0.3726, allocations: 500 kB / 0.5611 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003132/0.3757, allocations: 2.008 MB / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.821e-05/0.3757, allocations: 0 / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.712e-05/0.3757, allocations: 0 / 0.563 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.482e-06/0.3757, allocations: 3.938 kB / 0.563 GB, free: 1.719 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.001695/0.3774, allocations: 0.5251 MB / 0.5635 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.185e-05/0.3775, allocations: 7.938 kB / 0.5635 GB, free: 1.188 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.581e-05/0.3775, allocations: 3.984 kB / 0.5636 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.648e-05/0.3776, allocations: 4 kB / 0.5636 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.983e-05/0.3776, allocations: 0 / 0.5636 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-06/0.3776, allocations: 0 / 0.5636 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.3787, allocations: 0.698 MB / 0.5642 GB, free: 492 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.137e-06/0.3787, allocations: 0 / 0.5642 GB, free: 492 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.3788, allocations: 0 / 0.5642 GB, free: 492 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005645/0.3793, allocations: 388.8 kB / 0.5646 GB, free: 104 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3793, allocations: 4 kB / 0.5646 GB, free: 100 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3793, allocations: 0 / 0.5646 GB, free: 100 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3793, allocations: 0 / 0.5646 GB, free: 100 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.0004373/0.3798, allocations: 343.4 kB / 0.5649 GB, free: 15.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3798, allocations: 8.031 kB / 0.5649 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.236e-05/0.3799, allocations: 46.62 kB / 0.565 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.349e-05/0.3799, allocations: 8.938 kB / 0.565 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.96e-05/0.38, allocations: 102.5 kB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.38, allocations: 384 / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.38, allocations: 4.375 kB / 0.5651 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.3801, allocations: 63.52 kB / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.3801, allocations: 0 / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.933e-06/0.3801, allocations: 0 / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3802, allocations: 0 / 0.5652 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.446e-05/0.3802, allocations: 29.64 kB / 0.5652 GB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002345/0.3804, allocations: 208 kB / 0.5654 GB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.694e-05/0.3805, allocations: 52.28 kB / 0.5654 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.87e-05/0.3805, allocations: 34.62 kB / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.452e-06/0.3805, allocations: 0 / 0.5655 GB, free: 15.06 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.78e-05/0.3806, allocations: 60.25 kB / 0.5655 GB, free: 14.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3806, allocations: 0 / 0.5655 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002335/0.3808, allocations: 126.8 kB / 0.5657 GB, free: 14.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.3809, allocations: 85.09 kB / 0.5657 GB, free: 14.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.32e-05/0.3809, allocations: 89.86 kB / 0.5658 GB, free: 14.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.3809, allocations: 25.7 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.231e-05/0.381, allocations: 80.27 kB / 0.5659 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.375e-05/0.381, allocations: 4 kB / 0.5659 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.381, allocations: 13.72 kB / 0.5659 GB, free: 14.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.3811, allocations: 314.8 kB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.116e-05/0.3812, allocations: 29.7 kB / 0.5663 GB, free: 14.15 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.234e-05/0.3812, allocations: 33.69 kB / 0.5663 GB, free: 14.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.822e-05/0.3813, allocations: 68.2 kB / 0.5664 GB, free: 14.03 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.3813, allocations: 3.938 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.522e-05/0.3814, allocations: 93.06 kB / 0.5665 GB, free: 13.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.3814, allocations: 33.69 kB / 0.5665 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3814, allocations: 4.094 kB / 0.5665 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.3814, allocations: 0 / 0.5665 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.4e-05/0.3814, allocations: 0 / 0.5665 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.3814, allocations: 0 / 0.5665 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.108e-05/0.3814, allocations: 8 kB / 0.5665 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3815, allocations: 0 / 0.5665 GB, free: 13.86 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.023e-05/0.3815, allocations: 143.4 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.166e-05/0.3816, allocations: 0 / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.3816, allocations: 7.141 kB / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3816, allocations: 0 / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3816, allocations: 7.938 kB / 0.5666 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3816, allocations: 0 / 0.5666 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.3819, allocations: 301 kB / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3819, allocations: 0 / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-06/0.3819, allocations: 0 / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.3819, allocations: 0 / 0.5669 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.3819, allocations: 8 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3819, allocations: 0 / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3819, allocations: 0 / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.3821, allocations: 198.8 kB / 0.5671 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-06/0.3821, allocations: 8.047 kB / 0.5671 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.3821, allocations: 3.984 kB / 0.5671 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.108e-05/0.3821, allocations: 4 kB / 0.5671 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.885e-05/0.3822, allocations: 4 kB / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.3822, allocations: 0 / 0.5672 GB, free: 13.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.574e-05/0.3822, allocations: 75.28 kB / 0.5672 GB, free: 13.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3822, allocations: 0 / 0.5672 GB, free: 13.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004554/0.3826, allocations: 139.5 kB / 0.5674 GB, free: 12.87 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.001145/0.3838, allocations: 0.9614 MB / 0.5683 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.3839, allocations: 122.7 kB / 0.5684 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3839, allocations: 0 / 0.5684 GB, free: 11.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.88e-05/0.384, allocations: 85.11 kB / 0.5685 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00019/0.3842, allocations: 3.984 kB / 0.5685 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.3854, allocations: 1.336 MB / 0.5698 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.611e-05/0.3854, allocations: 59.34 kB / 0.5699 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.143e-05/0.3855, allocations: 3.938 kB / 0.5699 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.31e-05/0.3855, allocations: 7.438 kB / 0.5699 GB, free: 10.08 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3855, allocations: 0 / 0.5699 GB, free: 10.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03304/0.4185, allocations: 5.094 MB / 0.5748 GB, free: 5.117 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.41, allocations: 8.047 kB / 0.5749 GB, free: 5.109 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.432999709009891]