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.001384/0.001384, allocations: 96.14 kB / 15.87 MB, free: 16 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.001618/0.001619, allocations: 202.9 kB / 16.79 MB, free: 6.84 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.429/1.429, allocations: 205.1 MB / 222.6 MB, free: 4.754 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.3262/0.3262, allocations: 43.5 MB / 313.5 MB, free: 8.531 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.001382/0.001382, allocations: 78.55 kB / 382.1 MB, free: 8.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 57.78 MB / 439.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001767/0.111, allocations: 0.5698 MB / 440.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002984/0.114, allocations: 2.417 MB / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.184e-05/0.1141, allocations: 0 / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.1141, allocations: 0 / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.067e-06/0.1141, allocations: 0 / 442.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.1152, allocations: 470.9 kB / 443.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.99e-05/0.1153, allocations: 4 kB / 443.4 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.1153, allocations: 7.938 kB / 443.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.4e-05/0.1153, allocations: 0 / 443.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.385e-05/0.1154, allocations: 0 / 443.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.66e-06/0.1154, allocations: 0 / 443.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009673/0.1163, allocations: 0.7252 MB / 444.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.442e-06/0.1164, allocations: 0 / 444.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.694e-05/0.1164, allocations: 0 / 444.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005719/0.117, allocations: 463.3 kB / 444.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.155e-06/0.117, allocations: 0 / 444.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.117, allocations: 0 / 444.6 MB, free: 10.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.117, allocations: 0 / 444.6 MB, free: 10.1 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.0003789/0.1174, allocations: 441.2 kB / 445 MB, free: 9.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.1174, allocations: 11.97 kB / 445 MB, free: 9.605 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.531e-05/0.1175, allocations: 30.75 kB / 445 MB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.248e-05/0.1175, allocations: 0.9375 kB / 445 MB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.744e-05/0.1176, allocations: 172.3 kB / 445.2 MB, free: 9.359 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.1176, allocations: 4.375 kB / 445.2 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.326e-06/0.1176, allocations: 384 / 445.2 MB, free: 9.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.607e-05/0.1177, allocations: 37.83 kB / 445.2 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.1177, allocations: 0 / 445.2 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-06/0.1177, allocations: 3.938 kB / 445.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.1177, allocations: 0 / 445.2 MB, free: 9.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.891e-05/0.1178, allocations: 4 kB / 445.2 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002182/0.118, allocations: 236.9 kB / 445.5 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.508e-05/0.118, allocations: 26.52 kB / 445.5 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.116e-05/0.1181, allocations: 12.91 kB / 445.5 MB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-06/0.1181, allocations: 0 / 445.5 MB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.1181, allocations: 60.27 kB / 445.6 MB, free: 8.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.1181, allocations: 0 / 445.6 MB, free: 8.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001629/0.1183, allocations: 71.39 kB / 445.6 MB, free: 8.816 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.093e-05/0.1183, allocations: 85.05 kB / 445.7 MB, free: 8.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.369e-05/0.1184, allocations: 93.86 kB / 445.8 MB, free: 8.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.1184, allocations: 25.7 kB / 445.8 MB, free: 8.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.122e-05/0.1184, allocations: 80.14 kB / 445.9 MB, free: 8.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.1185, allocations: 7.891 kB / 445.9 MB, free: 8.492 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.602e-05/0.1185, allocations: 13.72 kB / 445.9 MB, free: 8.473 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.247e-05/0.1186, allocations: 314.8 kB / 446.2 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.064e-05/0.1186, allocations: 4.125 kB / 446.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.526e-06/0.1186, allocations: 4 kB / 446.3 MB, free: 8.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.935e-05/0.1187, allocations: 64.25 kB / 446.3 MB, free: 8.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.1187, allocations: 3.938 kB / 446.3 MB, free: 8.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.92e-05/0.1188, allocations: 71.34 kB / 446.4 MB, free: 7.984 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.1188, allocations: 29.7 kB / 446.4 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1188, allocations: 3.984 kB / 446.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.1188, allocations: 0 / 446.4 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.364e-05/0.1188, allocations: 4.094 kB / 446.4 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.1188, allocations: 4 kB / 446.4 MB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.676e-05/0.1189, allocations: 0 / 446.4 MB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.1189, allocations: 3.938 kB / 446.4 MB, free: 7.934 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 8.49e-05/0.119, allocations: 147.4 kB / 446.6 MB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.119, allocations: 0 / 446.6 MB, free: 7.773 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.376e-05/0.119, allocations: 3.125 kB / 446.6 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.119, allocations: 0 / 446.6 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.119, allocations: 0 / 446.6 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.119, allocations: 0 / 446.6 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002281/0.1193, allocations: 304.3 kB / 446.9 MB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1193, allocations: 3.938 kB / 446.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-06/0.1193, allocations: 0 / 446.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1193, allocations: 0 / 446.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-06/0.1193, allocations: 8 kB / 446.9 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.1193, allocations: 0 / 446.9 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1193, allocations: 0 / 446.9 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001046/0.1194, allocations: 181.1 kB / 447.1 MB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.755e-05/0.1195, allocations: 77.11 kB / 447.1 MB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.1195, allocations: 4 kB / 447.1 MB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.39e-05/0.1195, allocations: 0 / 447.1 MB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.1196, allocations: 0 / 447.1 MB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.1196, allocations: 3.984 kB / 447.2 MB, free: 7.098 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.452e-05/0.1196, allocations: 79.28 kB / 447.2 MB, free: 7.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1196, allocations: 0 / 447.2 MB, free: 7.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004342/0.12, allocations: 155.8 kB / 447.4 MB, free: 6.867 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.001064/0.1211, allocations: 0.9441 MB / 448.3 MB, free: 5.895 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.112e-05/0.1212, allocations: 67.44 kB / 448.4 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1212, allocations: 0 / 448.4 MB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 3.886e-05/0.1213, allocations: 63.33 kB / 448.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.1215, allocations: 0 / 448.5 MB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1225, allocations: 1.213 MB / 449.7 MB, free: 4.445 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1228, allocations: 0.6809 MB / 450.3 MB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.227e-05/0.1228, allocations: 0 / 450.3 MB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.813e-05/0.1228, allocations: 7.438 kB / 450.4 MB, free: 3.73 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1228, allocations: 4.031 kB / 450.4 MB, free: 3.727 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.193/0.3158, allocations: 4.385 MB / 454.7 MB, free: 48.25 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002134/0.316, allocations: 246.3 kB / 455 MB, free: 48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.88/2.196, allocations: 2.25 kB / 455 MB, free: 48 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