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.001545/0.001545, allocations: 104.2 kB / 16.27 MB, free: 6.008 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.001712/0.001712, allocations: 188.5 kB / 17.19 MB, free: 5.652 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.625/1.625, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2451/0.2451, allocations: 43.52 MB / 313.9 MB, free: 0.5352 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.001874/0.001874, allocations: 66.22 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1389, allocations: 57.79 MB / 440.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002115/0.1411, allocations: 0.4936 MB / 441.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003242/0.1444, allocations: 2.332 MB / 443.4 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.1444, allocations: 4 kB / 443.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.893e-05/0.1445, allocations: 0 / 443.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.1445, allocations: 0 / 443.5 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00176/0.1463, allocations: 0.5569 MB / 444 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.256e-05/0.1463, allocations: 7.984 kB / 444 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.642e-05/0.1464, allocations: 4 kB / 444 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.711e-05/0.1464, allocations: 3.938 kB / 444 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.146e-05/0.1464, allocations: 4 kB / 444 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-06/0.1464, allocations: 7.938 kB / 444 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00111/0.1475, allocations: 0.6863 MB / 444.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.307e-06/0.1476, allocations: 0 / 444.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.232e-05/0.1476, allocations: 0 / 444.7 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009852/0.1486, allocations: 463.4 kB / 445.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1486, allocations: 0 / 445.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1486, allocations: 0 / 445.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.1486, allocations: 0 / 445.2 MB, free: 2.246 MB / 318.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.0005045/0.1491, allocations: 429.2 kB / 445.6 MB, free: 1.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1492, allocations: 11.89 kB / 445.6 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.356e-05/0.1493, allocations: 38.69 kB / 445.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.864e-05/0.1493, allocations: 0.9375 kB / 445.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.502e-05/0.1494, allocations: 160.4 kB / 445.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1494, allocations: 384 / 445.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-06/0.1494, allocations: 4.375 kB / 445.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.789e-05/0.1495, allocations: 41.81 kB / 445.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1495, allocations: 0 / 445.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.918e-06/0.1495, allocations: 4 kB / 445.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1495, allocations: 3.938 kB / 445.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.396e-05/0.1496, allocations: 3.938 kB / 445.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000191/0.1498, allocations: 228.9 kB / 446.1 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.948e-05/0.1498, allocations: 26.61 kB / 446.1 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.05e-05/0.1499, allocations: 8.922 kB / 446.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.1499, allocations: 0 / 446.1 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.094e-05/0.1499, allocations: 68.2 kB / 446.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.1499, allocations: 0 / 446.2 MB, free: 1.055 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001943/0.1501, allocations: 67.39 kB / 446.3 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.128e-05/0.1502, allocations: 81.23 kB / 446.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.392e-05/0.1502, allocations: 93.86 kB / 446.4 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.448e-06/0.1502, allocations: 25.7 kB / 446.4 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.604e-05/0.1502, allocations: 80.14 kB / 446.5 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.1503, allocations: 11.89 kB / 446.5 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.1503, allocations: 9.719 kB / 446.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.293e-05/0.1503, allocations: 310.8 kB / 446.8 MB, free: 332 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.286e-05/0.1504, allocations: 8 kB / 446.9 MB, free: 324 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.655e-06/0.1504, allocations: 4 kB / 446.9 MB, free: 320 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.016e-05/0.1504, allocations: 68.2 kB / 446.9 MB, free: 236 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1504, allocations: 3.938 kB / 446.9 MB, free: 232 kB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.042e-05/0.1505, allocations: 67.39 kB / 447 MB, free: 152 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.12e-05/0.1506, allocations: 33.7 kB / 447 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1506, allocations: 0 / 447 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.1506, allocations: 0 / 447 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.527e-05/0.1506, allocations: 3.938 kB / 447 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.1506, allocations: 0 / 447 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.686e-05/0.1506, allocations: 4.094 kB / 447 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.625e-06/0.1507, allocations: 4 kB / 447 MB, free: 100 kB / 318.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.618e-05/0.1508, allocations: 148.5 kB / 447.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.743e-05/0.1508, allocations: 0 / 447.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.461e-05/0.1508, allocations: 11.12 kB / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1508, allocations: 0 / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1508, allocations: 0 / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1508, allocations: 0 / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.1511, allocations: 300.2 kB / 447.5 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.1511, allocations: 7.984 kB / 447.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.44e-06/0.1512, allocations: 3.938 kB / 447.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1512, allocations: 0 / 447.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.1512, allocations: 0 / 447.5 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1512, allocations: 3.984 kB / 447.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1512, allocations: 0 / 447.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/0.1513, allocations: 177.1 kB / 447.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.664e-05/0.1514, allocations: 81.17 kB / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.1514, allocations: 3.984 kB / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.683e-05/0.1514, allocations: 0 / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.946e-05/0.1515, allocations: 4 kB / 447.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.1515, allocations: 0 / 447.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.589e-05/0.1515, allocations: 79.31 kB / 447.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1515, allocations: 0 / 447.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005419/0.1521, allocations: 163.8 kB / 448 MB, free: 15.02 MB / 334.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.001252/0.1533, allocations: 0.9245 MB / 448.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.1535, allocations: 71.33 kB / 449 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1535, allocations: 8.031 kB / 449 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.665e-05/0.1535, allocations: 55.41 kB / 449.1 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000209/0.1537, allocations: 7.938 kB / 449.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.1548, allocations: 1.211 MB / 450.3 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.155, allocations: 0.6729 MB / 451 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.17e-05/0.1551, allocations: 0 / 451 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.234e-05/0.1551, allocations: 7.438 kB / 451 MB, free: 11.9 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.1551, allocations: 0 / 451 MB, free: 11.9 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.1832, allocations: 4.507 MB / 455.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.827/8.011, allocations: 3.75 kB / 455.5 MB, free: 7.402 MB / 334.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches