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.001005/0.001005, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 182.7 kB / 16.91 MB, free: 6.934 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.595/1.595, allocations: 205.4 MB / 223.1 MB, free: 5.555 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.3945/0.3945, allocations: 43.58 MB / 315 MB, free: 9.043 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.0005677/0.0005679, allocations: 16 kB / 384.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1418, allocations: 58.87 MB / 443.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0007547/0.1426, allocations: 236.4 kB / 443.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003552/0.1462, allocations: 2.379 MB / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.282e-05/0.1462, allocations: 0 / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.807e-05/0.1463, allocations: 0 / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.1463, allocations: 0 / 446.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.1476, allocations: 462.9 kB / 446.6 MB, free: 9.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.767e-05/0.1476, allocations: 4 kB / 446.6 MB, free: 9.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.371e-05/0.1477, allocations: 3.984 kB / 446.6 MB, free: 9.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.668e-05/0.1477, allocations: 3.938 kB / 446.6 MB, free: 9.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.912e-05/0.1477, allocations: 3.984 kB / 446.6 MB, free: 9.707 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.813e-06/0.1477, allocations: 0 / 446.6 MB, free: 9.707 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.1489, allocations: 0.7291 MB / 447.4 MB, free: 8.977 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.241e-05/0.1489, allocations: 0 / 447.4 MB, free: 8.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.145e-05/0.149, allocations: 25.7 kB / 447.4 MB, free: 8.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006647/0.1496, allocations: 459.3 kB / 447.8 MB, free: 8.496 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1497, allocations: 0 / 447.8 MB, free: 8.496 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1497, allocations: 3.938 kB / 447.8 MB, free: 8.492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.1497, allocations: 4 kB / 447.8 MB, free: 8.488 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.0005314/0.1502, allocations: 429.2 kB / 448.3 MB, free: 8.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.564e-05/0.1503, allocations: 12.03 kB / 448.3 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.815e-05/0.1504, allocations: 42.67 kB / 448.3 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.742e-05/0.1504, allocations: 0.9375 kB / 448.3 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1505, allocations: 160.4 kB / 448.5 MB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.847e-06/0.1505, allocations: 4.375 kB / 448.5 MB, free: 7.754 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.1506, allocations: 8.375 kB / 448.5 MB, free: 7.746 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.1507, allocations: 41.75 kB / 448.5 MB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1507, allocations: 0 / 448.5 MB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.1507, allocations: 3.984 kB / 448.5 MB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.1507, allocations: 0 / 448.5 MB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.532e-05/0.1508, allocations: 4 kB / 448.5 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002938/0.1511, allocations: 232.8 kB / 448.8 MB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.233e-05/0.1511, allocations: 26.59 kB / 448.8 MB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.845e-05/0.1512, allocations: 12.92 kB / 448.8 MB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.1512, allocations: 3.938 kB / 448.8 MB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.666e-05/0.1512, allocations: 56.27 kB / 448.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.1512, allocations: 0 / 448.8 MB, free: 7.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002051/0.1515, allocations: 75.5 kB / 448.9 MB, free: 7.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.1515, allocations: 81.11 kB / 449 MB, free: 7.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.208e-05/0.1516, allocations: 89.86 kB / 449.1 MB, free: 7.008 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.1516, allocations: 29.7 kB / 449.1 MB, free: 6.973 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.948e-05/0.1516, allocations: 80.14 kB / 449.2 MB, free: 6.891 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.654e-05/0.1517, allocations: 3.906 kB / 449.2 MB, free: 6.887 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.1517, allocations: 9.719 kB / 449.2 MB, free: 6.871 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1518, allocations: 318.8 kB / 449.5 MB, free: 6.551 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.1519, allocations: 4 kB / 449.5 MB, free: 6.547 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.018e-05/0.1519, allocations: 7.938 kB / 449.5 MB, free: 6.539 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.476e-05/0.1519, allocations: 64.27 kB / 449.6 MB, free: 6.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1519, allocations: 3.938 kB / 449.6 MB, free: 6.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.715e-05/0.152, allocations: 67.39 kB / 449.7 MB, free: 6.379 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/0.1521, allocations: 29.7 kB / 449.7 MB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1521, allocations: 4 kB / 449.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1521, allocations: 0 / 449.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.486e-05/0.1521, allocations: 0 / 449.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.1521, allocations: 96 / 449.7 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.573e-05/0.1522, allocations: 4 kB / 449.7 MB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.1522, allocations: 0 / 449.7 MB, free: 6.336 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.0001297/0.1523, allocations: 151.4 kB / 449.9 MB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.102e-05/0.1523, allocations: 0 / 449.9 MB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.54e-05/0.1524, allocations: 11.05 kB / 449.9 MB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1524, allocations: 4 kB / 449.9 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1524, allocations: 0 / 449.9 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.1524, allocations: 0 / 449.9 MB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.1527, allocations: 296.3 kB / 450.2 MB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1527, allocations: 0 / 450.2 MB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.473e-06/0.1527, allocations: 4 kB / 450.2 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1527, allocations: 0 / 450.2 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.1527, allocations: 0 / 450.2 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1527, allocations: 0 / 450.2 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1527, allocations: 0 / 450.2 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001309/0.1529, allocations: 181.2 kB / 450.3 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.201e-05/0.1529, allocations: 77.11 kB / 450.4 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1529, allocations: 7.984 kB / 450.4 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.021e-05/0.153, allocations: 0 / 450.4 MB, free: 5.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.973e-05/0.153, allocations: 4 kB / 450.4 MB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.153, allocations: 0 / 450.4 MB, free: 5.496 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.799e-05/0.1531, allocations: 75.28 kB / 450.5 MB, free: 5.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1531, allocations: 0 / 450.5 MB, free: 5.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004833/0.1535, allocations: 155.8 kB / 450.6 MB, free: 5.27 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.001385/0.1549, allocations: 0.944 MB / 451.6 MB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001211/0.1551, allocations: 63.41 kB / 451.7 MB, free: 4.223 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1551, allocations: 4.094 kB / 451.7 MB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.083e-05/0.1551, allocations: 59.39 kB / 451.7 MB, free: 4.148 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001986/0.1553, allocations: 4 kB / 451.7 MB, free: 4.145 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.1564, allocations: 1.209 MB / 452.9 MB, free: 2.852 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004193/0.1568, allocations: 0.6848 MB / 453.6 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.346e-05/0.1569, allocations: 0 / 453.6 MB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.897e-05/0.157, allocations: 7.438 kB / 453.6 MB, free: 2.133 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.157, allocations: 4 kB / 453.6 MB, free: 2.129 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2377/0.3947, allocations: 4.296 MB / 457.9 MB, free: 44.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002388/0.395, allocations: 245.2 kB / 458.2 MB, free: 44.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.376, allocations: 3.172 kB / 458.2 MB, free: 44.09 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