Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 104 kB / 15.98 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001244, allocations: 189.6 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.655/1.655, allocations: 205.1 MB / 222.8 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5021/0.5021, allocations: 43.5 MB / 313.6 MB, free: 8.258 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001784/0.001784, allocations: 63.91 kB / 382.3 MB, free: 8.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1575, allocations: 57.77 MB / 440.1 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002803/0.1604, allocations: 0.5776 MB / 440.7 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004385/0.1648, allocations: 2.324 MB / 443 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.1649, allocations: 0 / 443 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.285e-05/0.1649, allocations: 4 kB / 443 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.773e-06/0.1649, allocations: 0 / 443 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002723/0.1677, allocations: 0.5145 MB / 443.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.953e-05/0.1678, allocations: 0 / 443.5 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.013e-05/0.1678, allocations: 7.984 kB / 443.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.93e-05/0.1679, allocations: 7.969 kB / 443.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.61e-05/0.1679, allocations: 0 / 443.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.1679, allocations: 4 kB / 443.5 MB, free: 10.94 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.1695, allocations: 0.7213 MB / 444.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.19e-05/0.1696, allocations: 0 / 444.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.035e-05/0.1696, allocations: 0 / 444.3 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007667/0.1704, allocations: 459.3 kB / 444.7 MB, free: 9.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.1704, allocations: 7.984 kB / 444.7 MB, free: 9.758 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.559e-06/0.1704, allocations: 0 / 444.7 MB, free: 9.758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.1704, allocations: 0 / 444.7 MB, free: 9.758 MB / 382.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.0006889/0.1711, allocations: 440.5 kB / 445.1 MB, free: 9.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.1712, allocations: 11.89 kB / 445.2 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.193e-05/0.1713, allocations: 34.73 kB / 445.2 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.1713, allocations: 0.9375 kB / 445.2 MB, free: 9.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.1715, allocations: 164.4 kB / 445.3 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.1715, allocations: 8.312 kB / 445.4 MB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.034e-05/0.1715, allocations: 4.375 kB / 445.4 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001504/0.1717, allocations: 37.83 kB / 445.4 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1717, allocations: 0 / 445.4 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.1717, allocations: 0 / 445.4 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1717, allocations: 0 / 445.4 MB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.947e-05/0.1717, allocations: 4 kB / 445.4 MB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003507/0.1721, allocations: 232.9 kB / 445.6 MB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.062e-05/0.1722, allocations: 30.52 kB / 445.7 MB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.425e-05/0.1722, allocations: 12.91 kB / 445.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.254e-05/0.1723, allocations: 0 / 445.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.423e-05/0.1723, allocations: 60.27 kB / 445.7 MB, free: 8.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.1723, allocations: 0 / 445.7 MB, free: 8.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.000261/0.1726, allocations: 67.39 kB / 445.8 MB, free: 8.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.1727, allocations: 89.17 kB / 445.9 MB, free: 8.375 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.251e-05/0.1727, allocations: 93.86 kB / 446 MB, free: 8.273 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.1727, allocations: 29.64 kB / 446 MB, free: 8.238 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.1728, allocations: 80.14 kB / 446.1 MB, free: 8.156 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.604e-05/0.1728, allocations: 3.906 kB / 446.1 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.701e-05/0.1729, allocations: 13.72 kB / 446.1 MB, free: 8.133 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.173, allocations: 310.8 kB / 446.4 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.415e-05/0.173, allocations: 4 kB / 446.4 MB, free: 7.816 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.096e-05/0.173, allocations: 11.98 kB / 446.4 MB, free: 7.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.813e-05/0.1731, allocations: 60.27 kB / 446.5 MB, free: 7.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.075e-05/0.1731, allocations: 3.938 kB / 446.5 MB, free: 7.727 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.558e-05/0.1732, allocations: 71.34 kB / 446.6 MB, free: 7.645 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.22e-05/0.1732, allocations: 33.69 kB / 446.6 MB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.1732, allocations: 3.938 kB / 446.6 MB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1733, allocations: 0 / 446.6 MB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.145e-05/0.1733, allocations: 0 / 446.6 MB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1733, allocations: 4 kB / 446.6 MB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.221e-05/0.1733, allocations: 4.094 kB / 446.6 MB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.1733, allocations: 0 / 446.6 MB, free: 7.594 MB / 382.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.0001358/0.1735, allocations: 143.5 kB / 446.7 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.1735, allocations: 0 / 446.7 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.629e-05/0.1735, allocations: 7.125 kB / 446.7 MB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.1736, allocations: 0 / 446.7 MB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1736, allocations: 0 / 446.7 MB, free: 7.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1736, allocations: 3.984 kB / 446.7 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003104/0.1739, allocations: 300.3 kB / 447 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1739, allocations: 0 / 447 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.362e-06/0.1739, allocations: 3.938 kB / 447 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.1739, allocations: 0 / 447 MB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.1739, allocations: 4 kB / 447 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1739, allocations: 0 / 447 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1739, allocations: 0 / 447 MB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001597/0.1741, allocations: 169.2 kB / 447.2 MB, free: 6.875 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.331e-05/0.1742, allocations: 81.17 kB / 447.3 MB, free: 6.777 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.1742, allocations: 4 kB / 447.3 MB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.018e-05/0.1743, allocations: 0 / 447.3 MB, free: 6.773 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.376e-05/0.1743, allocations: 3.984 kB / 447.3 MB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1743, allocations: 3.984 kB / 447.3 MB, free: 6.766 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.076e-05/0.1743, allocations: 83.28 kB / 447.4 MB, free: 6.684 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1744, allocations: 0 / 447.4 MB, free: 6.684 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005039/0.1749, allocations: 159.8 kB / 447.5 MB, free: 6.527 MB / 382.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.001446/0.1763, allocations: 0.9474 MB / 448.5 MB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001384/0.1765, allocations: 63.41 kB / 448.6 MB, free: 5.477 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.291e-06/0.1765, allocations: 4.094 kB / 448.6 MB, free: 5.473 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.777e-05/0.1765, allocations: 63.33 kB / 448.6 MB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.1768, allocations: 3.594 kB / 448.6 MB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.178, allocations: 1.223 MB / 449.8 MB, free: 4.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.1784, allocations: 0.6806 MB / 450.5 MB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.25e-05/0.1784, allocations: 0 / 450.5 MB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.112e-05/0.1785, allocations: 7.438 kB / 450.5 MB, free: 3.379 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1785, allocations: 0 / 450.5 MB, free: 3.379 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7862/0.9647, allocations: 4.409 MB / 454.9 MB, free: 46.08 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003128/0.9651, allocations: 252.9 kB / 455.2 MB, free: 45.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/3.066, allocations: 1.312 kB / 455.2 MB, free: 45.82 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches