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.002008/0.002008, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001947/0.001947, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.462/1.462, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.2346/0.2346, allocations: 46.92 MB / 360.8 MB, free: 4.312 MB / 286.1 MB " [Timeout remaining time 180] 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.002186/0.002186, allocations: 71.83 kB / 0.4962 GB, free: 7.941 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3662, allocations: 66.03 MB / 0.5606 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001919/0.3681, allocations: 0.4932 MB / 0.5611 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003474/0.3716, allocations: 2.14 MB / 0.5632 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.055e-05/0.3716, allocations: 0 / 0.5632 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.631e-05/0.3716, allocations: 0 / 0.5632 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.522e-06/0.3716, allocations: 0 / 0.5632 GB, free: 1.859 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.001802/0.3734, allocations: 0.5254 MB / 0.5637 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.977e-05/0.3735, allocations: 0 / 0.5637 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.549e-05/0.3735, allocations: 0 / 0.5637 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.858e-05/0.3735, allocations: 4 kB / 0.5637 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.07e-05/0.3735, allocations: 3.938 kB / 0.5637 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.523e-06/0.3735, allocations: 0 / 0.5637 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001312/0.3748, allocations: 0.7681 MB / 0.5645 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.485e-06/0.3749, allocations: 0 / 0.5645 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.936e-05/0.3749, allocations: 0 / 0.5645 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007249/0.3756, allocations: 392.9 kB / 0.5649 GB, free: 180 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3756, allocations: 4 kB / 0.5649 GB, free: 176 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3756, allocations: 0 / 0.5649 GB, free: 176 kB / 398.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.3756, allocations: 7.938 kB / 0.5649 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.0004862/0.3761, allocations: 339.3 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.3761, allocations: 16.02 kB / 0.5652 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.245e-05/0.3762, allocations: 38.69 kB / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.594e-05/0.3762, allocations: 0.9375 kB / 0.5653 GB, free: 15.73 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.385e-05/0.3763, allocations: 102.5 kB / 0.5653 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.347e-05/0.3763, allocations: 4.375 kB / 0.5654 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.503e-06/0.3763, allocations: 384 / 0.5654 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.757e-05/0.3764, allocations: 37.77 kB / 0.5654 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.3764, allocations: 4 kB / 0.5654 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.3765, allocations: 0 / 0.5654 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.567e-06/0.3765, allocations: 0 / 0.5654 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.102e-05/0.3765, allocations: 11.98 kB / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002312/0.3767, allocations: 196 kB / 0.5656 GB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.813e-05/0.3768, allocations: 30.5 kB / 0.5656 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.463e-05/0.3768, allocations: 16.86 kB / 0.5656 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.407e-06/0.3768, allocations: 0 / 0.5656 GB, free: 15.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.126e-05/0.3769, allocations: 60.2 kB / 0.5657 GB, free: 15.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.3769, allocations: 0 / 0.5657 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002047/0.3771, allocations: 71.39 kB / 0.5658 GB, free: 15.1 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.794e-05/0.3771, allocations: 77.11 kB / 0.5658 GB, free: 15 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.868e-05/0.3772, allocations: 93.86 kB / 0.5659 GB, free: 14.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.3772, allocations: 25.7 kB / 0.566 GB, free: 14.87 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.524e-05/0.3772, allocations: 84.27 kB / 0.566 GB, free: 14.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-05/0.3772, allocations: 4 kB / 0.566 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.029e-05/0.3773, allocations: 9.719 kB / 0.566 GB, free: 14.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3774, allocations: 318.8 kB / 0.5663 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.288e-05/0.3774, allocations: 7.938 kB / 0.5664 GB, free: 14.44 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.516e-06/0.3774, allocations: 4 kB / 0.5664 GB, free: 14.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.15e-05/0.3775, allocations: 60.27 kB / 0.5664 GB, free: 14.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.3775, allocations: 8 kB / 0.5664 GB, free: 14.35 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.356e-05/0.3776, allocations: 71.34 kB / 0.5665 GB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.036e-05/0.3776, allocations: 33.7 kB / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.3776, allocations: 0 / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3776, allocations: 0 / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.856e-05/0.3777, allocations: 4 kB / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.3777, allocations: 0 / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.571e-05/0.3777, allocations: 0 / 0.5665 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.515e-06/0.3777, allocations: 7.938 kB / 0.5665 GB, free: 14.22 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.0001064/0.3778, allocations: 143.5 kB / 0.5667 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.3778, allocations: 4 kB / 0.5667 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.294e-05/0.3778, allocations: 7.141 kB / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-06/0.3778, allocations: 0 / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3779, allocations: 0 / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3779, allocations: 0 / 0.5667 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002724/0.3781, allocations: 267.4 kB / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3781, allocations: 0 / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.068e-06/0.3781, allocations: 0 / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3781, allocations: 0 / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.3781, allocations: 4.031 kB / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3781, allocations: 0 / 0.5669 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3781, allocations: 3.984 kB / 0.5669 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001458/0.3783, allocations: 177.1 kB / 0.5671 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.799e-06/0.3783, allocations: 3.938 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.316e-05/0.3783, allocations: 0 / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.977e-05/0.3784, allocations: 7.984 kB / 0.5671 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.461e-05/0.3784, allocations: 4.031 kB / 0.5671 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.3784, allocations: 3.938 kB / 0.5671 GB, free: 13.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.33e-05/0.3784, allocations: 75.28 kB / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3784, allocations: 0 / 0.5672 GB, free: 13.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004811/0.3789, allocations: 143.5 kB / 0.5673 GB, free: 13.29 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.001186/0.3801, allocations: 0.9064 MB / 0.5682 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001234/0.3802, allocations: 63.39 kB / 0.5683 GB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.3802, allocations: 4 kB / 0.5683 GB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.215e-05/0.3803, allocations: 55.41 kB / 0.5683 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001974/0.3805, allocations: 2.797 kB / 0.5683 GB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3816, allocations: 1.211 MB / 0.5695 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003272/0.382, allocations: 0.6768 MB / 0.5702 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.372e-05/0.382, allocations: 0 / 0.5702 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.382, allocations: 7.438 kB / 0.5702 GB, free: 10.21 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.382, allocations: 0 / 0.5702 GB, free: 10.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03357/0.4156, allocations: 4.655 MB / 0.5747 GB, free: 5.684 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.57, allocations: 3.234 kB / 0.5747 GB, free: 5.684 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.463084201095626]