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.0007894/0.0007894, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007627/0.0007627, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9306/0.9306, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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.273/0.273, allocations: 34.24 MB / 294.9 MB, free: 0.6992 MB / 266.7 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 1.864e-06/1.864e-06, allocations: 0 / 442.2 MB, free: 1.652 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.329e-05/2.516e-05, allocations: 4.391 kB / 442.2 MB, free: 1.648 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.00115/0.001175, allocations: 0.4969 MB / 442.7 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.2136/0.2148, allocations: 2.008 MB / 444.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.998e-05/0.2148, allocations: 0 / 444.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.2148, allocations: 0 / 444.7 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.301e-06/0.2148, allocations: 1.312 kB / 444.7 MB, free: 42.7 MB / 410.7 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.0012/0.216, allocations: 0.5231 MB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.039e-05/0.2161, allocations: 3.25 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.865e-05/0.2161, allocations: 3.031 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.588e-05/0.2161, allocations: 2.891 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.869e-05/0.2162, allocations: 0 / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.757e-06/0.2162, allocations: 7.281 kB / 445.2 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008544/0.217, allocations: 0.6411 MB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.815e-05/0.217, allocations: 0 / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.497e-05/0.2171, allocations: 0 / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006517/0.2177, allocations: 463.1 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2177, allocations: 0.5938 kB / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.2177, allocations: 0 / 446.3 MB, free: 42.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2177, allocations: 0.5 kB / 446.3 MB, free: 42.54 MB / 410.7 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.0005556/0.2183, allocations: 349.2 kB / 446.7 MB, free: 42.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.975e-05/0.2183, allocations: 7.906 kB / 446.7 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.764e-05/0.2184, allocations: 40.55 kB / 446.7 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.765e-05/0.2185, allocations: 0.9375 kB / 446.7 MB, free: 42.16 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.881e-05/0.2185, allocations: 108.4 kB / 446.8 MB, free: 42.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.2185, allocations: 384 / 446.8 MB, free: 42.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.211e-05/0.2185, allocations: 4 kB / 446.8 MB, free: 42.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.2187, allocations: 60.5 kB / 446.9 MB, free: 41.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2187, allocations: 192 / 446.9 MB, free: 41.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.2187, allocations: 384 / 446.9 MB, free: 41.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.2187, allocations: 3.938 kB / 446.9 MB, free: 41.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.013e-05/0.2187, allocations: 28.55 kB / 446.9 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002315/0.219, allocations: 208.7 kB / 447.1 MB, free: 41.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.713e-05/0.219, allocations: 54.88 kB / 447.2 MB, free: 41.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.784e-05/0.2191, allocations: 40.44 kB / 447.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.2191, allocations: 0 / 447.2 MB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.81e-05/0.2191, allocations: 63.11 kB / 447.3 MB, free: 41.53 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 1.293e-06/0.2191, allocations: 0 / 447.3 MB, free: 41.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002263/0.2193, allocations: 121.7 kB / 447.4 MB, free: 41.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.2194, allocations: 84.98 kB / 447.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.177e-05/0.2194, allocations: 92.77 kB / 447.6 MB, free: 41.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.103e-06/0.2194, allocations: 25.83 kB / 447.6 MB, free: 41.17 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-06/0.2194, allocations: 84.14 kB / 447.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.757e-05/0.2194, allocations: 8.234 kB / 447.7 MB, free: 41.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.533e-05/0.2195, allocations: 12.22 kB / 447.7 MB, free: 41.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.23e-05/0.2195, allocations: 313.6 kB / 448 MB, free: 40.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.883e-05/0.2195, allocations: 28.45 kB / 448 MB, free: 40.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.193e-05/0.2195, allocations: 28.58 kB / 448 MB, free: 40.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.118e-05/0.2196, allocations: 70.86 kB / 448.1 MB, free: 40.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2196, allocations: 2.594 kB / 448.1 MB, free: 40.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.433e-05/0.2196, allocations: 96.39 kB / 448.2 MB, free: 40.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.504e-05/0.2197, allocations: 41.89 kB / 448.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.2197, allocations: 0 / 448.2 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.2197, allocations: 2.719 kB / 448.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.419e-05/0.2197, allocations: 0 / 448.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.2197, allocations: 0 / 448.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.009e-05/0.2197, allocations: 3.938 kB / 448.3 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.22e-05/0.2198, allocations: 2.406 kB / 448.3 MB, free: 40.48 MB / 410.7 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 6.753e-05/0.2198, allocations: 139.2 kB / 448.4 MB, free: 40.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.342e-05/0.2198, allocations: 3.938 kB / 448.4 MB, free: 40.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.414e-05/0.2199, allocations: 3.156 kB / 448.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-06/0.2199, allocations: 9.734 kB / 448.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.2199, allocations: 0 / 448.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.2199, allocations: 0 / 448.4 MB, free: 40.33 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/0.2201, allocations: 298.2 kB / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.2201, allocations: 3.938 kB / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.514e-06/0.2201, allocations: 2.906 kB / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.2201, allocations: 0 / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.2201, allocations: 0 / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.2201, allocations: 0 / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2201, allocations: 0 / 448.7 MB, free: 40 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.865e-05/0.2202, allocations: 199.3 kB / 448.9 MB, free: 39.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.24e-06/0.2202, allocations: 3.938 kB / 448.9 MB, free: 39.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.2202, allocations: 5.625 kB / 448.9 MB, free: 39.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.911e-05/0.2202, allocations: 2.656 kB / 448.9 MB, free: 39.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.225e-05/0.2202, allocations: 3.938 kB / 448.9 MB, free: 39.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.436e-06/0.2202, allocations: 2.781 kB / 448.9 MB, free: 39.79 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.503e-05/0.2202, allocations: 75.28 kB / 449 MB, free: 39.72 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2202, allocations: 0 / 449 MB, free: 39.72 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004685/0.2207, allocations: 131.5 kB / 449.1 MB, free: 39.7 MB / 410.7 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.000853/0.2216, allocations: 0.9956 MB / 450.1 MB, free: 38.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.2217, allocations: 118.9 kB / 450.2 MB, free: 38.77 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2217, allocations: 0 / 450.2 MB, free: 38.77 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.061e-05/0.2217, allocations: 84.02 kB / 450.3 MB, free: 38.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001591/0.2219, allocations: 2.844 kB / 450.3 MB, free: 38.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006822/0.2226, allocations: 1.34 MB / 451.7 MB, free: 37.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.591e-05/0.2226, allocations: 57.62 kB / 451.7 MB, free: 37.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.37e-05/0.2226, allocations: 2.875 kB / 451.7 MB, free: 37.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.2227, allocations: 8.5 kB / 451.7 MB, free: 37.25 MB / 410.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2227, allocations: 0 / 451.7 MB, free: 37.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.2443, allocations: 5.245 MB / 457 MB, free: 36.09 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.962/7.206, allocations: 9.938 kB / 457 MB, free: 36.08 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins/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: 9.214041321538389]