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.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.0009187/0.0009187, allocations: 80.53 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008832/0.0008832, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 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 0.923/0.923, allocations: 158.6 MB / 185 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.1471/0.1471, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 3.938 kB / 406.8 MB, free: 2.238 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.623e-05, allocations: 10.08 kB / 406.8 MB, free: 2.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001137/0.001153, allocations: 0.5104 MB / 407.3 MB, free: 1.723 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.003463, allocations: 2.228 MB / 409.6 MB, free: 15.47 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.595e-05/0.003479, allocations: 0 / 409.6 MB, free: 15.47 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.003494, allocations: 0 / 409.6 MB, free: 15.47 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.003501, allocations: 0 / 409.6 MB, free: 15.47 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.004552, allocations: 0.58 MB / 410.2 MB, free: 14.89 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 4.719e-05/0.004599, allocations: 8 kB / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.45e-05/0.004634, allocations: 4 kB / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.723e-05/0.004661, allocations: 0 / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.811e-05/0.004679, allocations: 0 / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.061e-05/0.00469, allocations: 0 / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000995/0.005685, allocations: 0.6626 MB / 410.8 MB, free: 14.21 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 9.477e-06/0.005694, allocations: 4 kB / 410.8 MB, free: 14.21 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 2.272e-05/0.005717, allocations: 0 / 410.8 MB, free: 14.21 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004749/0.006192, allocations: 0.5221 MB / 411.4 MB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.493e-06/0.006193, allocations: 0 / 411.4 MB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.006194, allocations: 0 / 411.4 MB, free: 13.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.006199, allocations: 0 / 411.4 MB, free: 13.68 MB / 394.7 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.0003672/0.006566, allocations: 371 kB / 411.7 MB, free: 13.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.006603, allocations: 8.031 kB / 411.7 MB, free: 13.28 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.084e-05/0.006654, allocations: 30.75 kB / 411.8 MB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.253e-05/0.006676, allocations: 4.922 kB / 411.8 MB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.357e-05/0.00673, allocations: 113.7 kB / 411.9 MB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.006738, allocations: 384 / 411.9 MB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-06/0.006745, allocations: 384 / 411.9 MB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.378e-05/0.006828, allocations: 63.91 kB / 411.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.006835, allocations: 192 / 411.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.006843, allocations: 8.125 kB / 411.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.006848, allocations: 0 / 411.9 MB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.717e-05/0.006875, allocations: 33.62 kB / 412 MB, free: 12.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.007068, allocations: 192 kB / 412.2 MB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.258e-05/0.007131, allocations: 56.3 kB / 412.2 MB, free: 12.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.278e-05/0.007154, allocations: 38.62 kB / 412.3 MB, free: 12.63 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.556e-06/0.007162, allocations: 3.938 kB / 412.3 MB, free: 12.62 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.007197, allocations: 64.25 kB / 412.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.007198, allocations: 0 / 412.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001668/0.007365, allocations: 126.7 kB / 412.4 MB, free: 12.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.007405, allocations: 81.11 kB / 412.5 MB, free: 12.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.916e-05/0.007435, allocations: 89.86 kB / 412.6 MB, free: 12.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.007447, allocations: 25.7 kB / 412.6 MB, free: 12.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.733e-05/0.007474, allocations: 80.14 kB / 412.7 MB, free: 12.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.007495, allocations: 8.078 kB / 412.7 MB, free: 12.08 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.007529, allocations: 13.72 kB / 412.7 MB, free: 12.06 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.722e-05/0.007626, allocations: 318.8 kB / 413.1 MB, free: 11.74 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.7e-05/0.007653, allocations: 29.7 kB / 413.1 MB, free: 11.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.762e-05/0.007671, allocations: 25.7 kB / 413.1 MB, free: 11.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.116e-05/0.007722, allocations: 68.27 kB / 413.2 MB, free: 11.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.007725, allocations: 0 / 413.2 MB, free: 11.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.835e-05/0.007813, allocations: 101 kB / 413.3 MB, free: 11.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.582e-05/0.007849, allocations: 33.7 kB / 413.3 MB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.007854, allocations: 4.094 kB / 413.3 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.00787, allocations: 4 kB / 413.3 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.79e-05/0.007888, allocations: 0 / 413.3 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.007893, allocations: 0 / 413.3 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.447e-05/0.007908, allocations: 4 kB / 413.3 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.007917, allocations: 0 / 413.3 MB, free: 11.43 MB / 394.7 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 6.54e-05/0.007982, allocations: 139.5 kB / 413.5 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.007995, allocations: 3.938 kB / 413.5 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.387e-05/0.008008, allocations: 3.156 kB / 413.5 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.00801, allocations: 0 / 413.5 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.008015, allocations: 0 / 413.5 MB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.008018, allocations: 7.938 kB / 413.5 MB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000187/0.008205, allocations: 308.9 kB / 413.8 MB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.008206, allocations: 0 / 413.8 MB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.647e-06/0.00821, allocations: 3.938 kB / 413.8 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.008213, allocations: 7.984 kB / 413.8 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.008219, allocations: 0 / 413.8 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.00822, allocations: 0 / 413.8 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.008221, allocations: 0 / 413.8 MB, free: 10.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.677e-05/0.008308, allocations: 194.9 kB / 414 MB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-06/0.008313, allocations: 3.938 kB / 414 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.809e-06/0.008322, allocations: 4.062 kB / 414 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.292e-05/0.008345, allocations: 4 kB / 414 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.568e-05/0.008361, allocations: 0 / 414 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.008364, allocations: 0 / 414 MB, free: 10.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.195e-05/0.008386, allocations: 83.28 kB / 414.1 MB, free: 10.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008386, allocations: 0 / 414.1 MB, free: 10.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000349/0.008735, allocations: 155.4 kB / 414.2 MB, free: 10.42 MB / 394.7 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.0008467/0.009581, allocations: 1.021 MB / 415.2 MB, free: 9.359 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.009698, allocations: 122.7 kB / 415.4 MB, free: 9.215 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.009699, allocations: 0 / 415.4 MB, free: 9.215 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-05/0.009726, allocations: 81.11 kB / 415.4 MB, free: 9.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.009865, allocations: 4 kB / 415.4 MB, free: 9.113 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007554/0.01062, allocations: 1.356 MB / 416.8 MB, free: 7.637 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.082e-05/0.01066, allocations: 59.38 kB / 416.9 MB, free: 7.559 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.048e-05/0.01067, allocations: 4 kB / 416.9 MB, free: 7.555 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.399e-05/0.0107, allocations: 8.5 kB / 416.9 MB, free: 7.543 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0107, allocations: 0 / 416.9 MB, free: 7.543 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.03044, allocations: 5.253 MB / 422.1 MB, free: 2.258 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.161/7.192, allocations: 3.859 kB / 422.1 MB, free: 2.254 MB / 394.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv: Error: Error opening file: ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.397678600624204]