Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001672/0.001672, allocations: 104.3 kB / 19.69 MB, free: 1.945 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.00151/0.00151, allocations: 219.4 kB / 23 MB, free: 4.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 207.7 MB / 233.8 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2583/0.2583, allocations: 44.26 MB / 330.4 MB, free: 9.309 MB / 270.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002382/0.002382, allocations: 67.91 kB / 467.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.144, allocations: 61.05 MB / 0.5162 GB, free: 7.188 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.002698/0.1467, allocations: 0.5066 MB / 0.5166 GB, free: 6.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004163/0.1508, allocations: 1.991 MB / 0.5186 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.687e-05/0.1508, allocations: 0 / 0.5186 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.097e-05/0.1509, allocations: 0 / 0.5186 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.167e-06/0.1509, allocations: 4 kB / 0.5186 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002024/0.1529, allocations: 0.5065 MB / 0.5191 GB, free: 4.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.159e-05/0.153, allocations: 7.984 kB / 0.5191 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.153, allocations: 0 / 0.5191 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.759e-05/0.153, allocations: 0 / 0.5191 GB, free: 4.145 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.289e-05/0.1531, allocations: 4 kB / 0.5191 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.204e-06/0.1531, allocations: 0 / 0.5191 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001306/0.1544, allocations: 0.6315 MB / 0.5197 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.299e-05/0.1544, allocations: 3.938 kB / 0.5197 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.74e-05/0.1544, allocations: 4 kB / 0.5197 GB, free: 3.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009711/0.1554, allocations: 379.3 kB / 0.5201 GB, free: 3.129 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1554, allocations: 0 / 0.5201 GB, free: 3.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1554, allocations: 0 / 0.5201 GB, free: 3.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1554, allocations: 3.984 kB / 0.5201 GB, free: 3.125 MB / 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.0007124/0.1561, allocations: 339.4 kB / 0.5204 GB, free: 2.758 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.543e-05/0.1562, allocations: 8.031 kB / 0.5204 GB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.73e-05/0.1563, allocations: 34.69 kB / 0.5205 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.363e-05/0.1563, allocations: 0.9375 kB / 0.5205 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001073/0.1564, allocations: 106.5 kB / 0.5206 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.1564, allocations: 384 / 0.5206 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.1564, allocations: 384 / 0.5206 GB, free: 2.578 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001667/0.1566, allocations: 71.52 kB / 0.5206 GB, free: 2.496 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.1566, allocations: 3.938 kB / 0.5206 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.1566, allocations: 0 / 0.5206 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.1566, allocations: 0 / 0.5206 GB, free: 2.492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.354e-05/0.1567, allocations: 29.7 kB / 0.5207 GB, free: 2.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003091/0.157, allocations: 204 kB / 0.5209 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.916e-05/0.1571, allocations: 44.31 kB / 0.5209 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.164e-05/0.1571, allocations: 38.62 kB / 0.5209 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.369e-05/0.1571, allocations: 4 kB / 0.5209 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.145e-05/0.1572, allocations: 64.2 kB / 0.521 GB, free: 2.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1572, allocations: 0 / 0.521 GB, free: 2.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002787/0.1575, allocations: 122.8 kB / 0.5211 GB, free: 1.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.413e-05/0.1575, allocations: 77.11 kB / 0.5212 GB, free: 1.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.065e-05/0.1576, allocations: 93.86 kB / 0.5213 GB, free: 1.688 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1576, allocations: 25.7 kB / 0.5213 GB, free: 1.656 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.1577, allocations: 84.12 kB / 0.5214 GB, free: 1.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.1577, allocations: 7.953 kB / 0.5214 GB, free: 1.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.1577, allocations: 13.72 kB / 0.5214 GB, free: 1.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.1579, allocations: 310.8 kB / 0.5217 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.126e-05/0.1579, allocations: 33.83 kB / 0.5217 GB, free: 1.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.697e-05/0.158, allocations: 29.7 kB / 0.5218 GB, free: 1.156 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.908e-05/0.1581, allocations: 72.19 kB / 0.5218 GB, free: 1.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.361e-06/0.1581, allocations: 3.938 kB / 0.5218 GB, free: 1.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001021/0.1582, allocations: 89.11 kB / 0.5219 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.239e-05/0.1582, allocations: 33.7 kB / 0.522 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.1582, allocations: 0 / 0.522 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.1582, allocations: 3.984 kB / 0.522 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.895e-05/0.1582, allocations: 0 / 0.522 GB, free: 0.918 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.1583, allocations: 4.031 kB / 0.522 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.762e-05/0.1583, allocations: 4 kB / 0.522 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.1583, allocations: 4 kB / 0.522 GB, free: 0.9062 MB / 398.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.0001282/0.1584, allocations: 143.4 kB / 0.5221 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.16e-05/0.1584, allocations: 0 / 0.5221 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.892e-05/0.1584, allocations: 7.156 kB / 0.5221 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1585, allocations: 7.922 kB / 0.5221 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1585, allocations: 4 kB / 0.5221 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.1585, allocations: 0 / 0.5221 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003288/0.1588, allocations: 301 kB / 0.5224 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1588, allocations: 32 / 0.5224 GB, free: 384 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-06/0.1588, allocations: 4 kB / 0.5224 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1588, allocations: 0 / 0.5224 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.1588, allocations: 0 / 0.5224 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1588, allocations: 0 / 0.5224 GB, free: 380 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1588, allocations: 4 kB / 0.5224 GB, free: 376 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001642/0.159, allocations: 198.8 kB / 0.5226 GB, free: 148 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.549e-05/0.159, allocations: 4 kB / 0.5226 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.159, allocations: 0 / 0.5226 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.823e-05/0.159, allocations: 0 / 0.5226 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.554e-05/0.1591, allocations: 0 / 0.5226 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.1591, allocations: 12.02 kB / 0.5226 GB, free: 132 kB / 398.1 MB Notification: Performance of sorting global known variables: time 3.834e-05/0.1591, allocations: 75.28 kB / 0.5227 GB, free: 56 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1591, allocations: 0 / 0.5227 GB, free: 56 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005993/0.1597, allocations: 135.5 kB / 0.5228 GB, free: 15.92 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.001276/0.161, allocations: 0.9635 MB / 0.5238 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.1612, allocations: 122.8 kB / 0.5239 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1612, allocations: 0 / 0.5239 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.406e-05/0.1612, allocations: 81.11 kB / 0.524 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001936/0.1614, allocations: 7.938 kB / 0.524 GB, free: 14.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.1627, allocations: 1.328 MB / 0.5253 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.47e-05/0.1628, allocations: 55.36 kB / 0.5253 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.139e-05/0.1628, allocations: 0 / 0.5253 GB, free: 13.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.495e-05/0.1628, allocations: 11.62 kB / 0.5253 GB, free: 13.13 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1628, allocations: 4 kB / 0.5253 GB, free: 13.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03593/0.1987, allocations: 4.97 MB / 0.5302 GB, free: 8.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.56, allocations: 7.266 kB / 0.5302 GB, free: 8.152 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestDistributions/TestDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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.985129444859922]