Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") translateModel(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cab.1..Amp|cab.2..Amp|cab.3..Amp|cab.4..Amp|cab.5..Amp|cab.6..Amp|cab.7..Amp",fileNamePrefix="Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005704/0.005704, allocations: 100.7 kB / 15.73 MB, free: 6.453 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.001104/0.001104, allocations: 184.8 kB / 16.67 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.56/2.56, allocations: 390.2 MB / 0.6648 GB, free: 148 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 65.61 kB / 0.9508 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3903/0.3916, allocations: 140.4 MB / 1.088 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.003471/0.3951, allocations: 1.406 MB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003485/0.3987, allocations: 2.675 MB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.687e-05/0.3987, allocations: 0 / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001771/0.4006, allocations: 0.5865 MB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.048e-05/0.4006, allocations: 19.91 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 4.398e-06/0.4007, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002628/0.4009, allocations: 158.9 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.11e-05/0.401, allocations: 36.39 kB / 1.093 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.564e-05/0.4011, allocations: 59.72 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.4013, allocations: 79.58 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.4013, allocations: 8 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001078/0.4024, allocations: 463.3 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.234e-05/0.4024, allocations: 43.77 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.4026, allocations: 95.42 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000686/0.4033, allocations: 446.1 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/0.4033, allocations: 0 / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.504e-06/0.4033, allocations: 0 / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.286e-06/0.4033, allocations: 0 / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0008376/0.4041, allocations: 0.5412 MB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.4042, allocations: 8.031 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.4043, allocations: 103.9 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.4046, allocations: 314.3 kB / 1.095 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.24e-05/0.4047, allocations: 150.9 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.394e-05/0.4048, allocations: 154.9 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.775e-05/0.4049, allocations: 105.5 kB / 1.095 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.646e-05/0.4049, allocations: 75.47 kB / 1.095 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.696e-05/0.405, allocations: 158.5 kB / 1.095 GB, free: 9.727 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.695e-05/0.405, allocations: 154.6 kB / 1.096 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.3e-05/0.4051, allocations: 154.5 kB / 1.096 GB, free: 9.422 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.4055, allocations: 0.5327 MB / 1.096 GB, free: 8.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.4056, allocations: 173.1 kB / 1.096 GB, free: 8.66 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.899e-05/0.4057, allocations: 84.12 kB / 1.096 GB, free: 8.574 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.724e-05/0.4057, allocations: 75.28 kB / 1.096 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.21e-05/0.4058, allocations: 109.8 kB / 1.097 GB, free: 8.383 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=0): time 9.22e-07/0.4058, allocations: 4 kB / 1.097 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of matching and sorting (n=0): time 0.0001846/0.406, allocations: 57.3 kB / 1.097 GB, free: 8.316 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.4061, allocations: 130.7 kB / 1.097 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004543/0.4065, allocations: 429.2 kB / 1.097 GB, free: 7.75 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.4065, allocations: 25.7 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.855e-05/0.4067, allocations: 136.5 kB / 1.097 GB, free: 7.582 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.378e-06/0.4067, allocations: 7.875 kB / 1.097 GB, free: 7.574 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.855e-05/0.4068, allocations: 89.66 kB / 1.097 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4069, allocations: 342.8 kB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.4071, allocations: 100.5 kB / 1.098 GB, free: 7.039 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.4072, allocations: 169.2 kB / 1.098 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.4076, allocations: 301.7 kB / 1.098 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4076, allocations: 0 / 1.098 GB, free: 6.535 MB / 0.8575 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004933/0.4081, allocations: 332.9 kB / 1.099 GB, free: 6.203 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.4081, allocations: 4 kB / 1.099 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.4081, allocations: 7.938 kB / 1.099 GB, free: 6.191 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.4081, allocations: 0 / 1.099 GB, free: 6.191 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.681e-06/0.4081, allocations: 11.98 kB / 1.099 GB, free: 6.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.4082, allocations: 0 / 1.099 GB, free: 6.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.4083, allocations: 43.28 kB / 1.099 GB, free: 6.137 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.4083, allocations: 4 kB / 1.099 GB, free: 6.133 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.0002548/0.4086, allocations: 248.4 kB / 1.099 GB, free: 5.883 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.109e-05/0.4087, allocations: 124.6 kB / 1.099 GB, free: 5.754 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.591e-05/0.4087, allocations: 118.9 kB / 1.099 GB, free: 5.629 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.589e-05/0.4088, allocations: 184.2 kB / 1.099 GB, free: 5.441 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.56e-05/0.4089, allocations: 176.3 kB / 1.1 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.038e-05/0.409, allocations: 180.3 kB / 1.1 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002876/0.4092, allocations: 489 kB / 1.1 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.921e-05/0.4093, allocations: 101 kB / 1.1 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.323e-05/0.4093, allocations: 108.9 kB / 1.1 GB, free: 4.324 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.848e-05/0.4094, allocations: 180.3 kB / 1.101 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.817e-05/0.4095, allocations: 180.2 kB / 1.101 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.724e-05/0.4095, allocations: 188.4 kB / 1.101 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.054e-05/0.4096, allocations: 176.3 kB / 1.101 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.4097, allocations: 331.4 kB / 1.101 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.4098, allocations: 201.8 kB / 1.102 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.663e-05/0.4099, allocations: 192.2 kB / 1.102 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.4101, allocations: 105 kB / 1.102 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.493e-05/0.4101, allocations: 180.2 kB / 1.102 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.4102, allocations: 101 kB / 1.102 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002467/0.4104, allocations: 283.1 kB / 1.102 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.412e-06/0.4104, allocations: 0 / 1.102 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004207/0.4108, allocations: 87.92 kB / 1.102 GB, free: 2.059 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.0004029/0.4113, allocations: 298.4 kB / 1.103 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002362/0.4115, allocations: 167.8 kB / 1.103 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4115, allocations: 0 / 1.103 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.4115, allocations: 0 / 1.103 GB, free: 1.594 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004141/0.4119, allocations: 465.1 kB / 1.103 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000655/0.4126, allocations: 499.2 kB / 1.104 GB, free: 0.6211 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.4129, allocations: 0.7782 MB / 1.105 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.537e-05/0.413, allocations: 7.984 kB / 1.105 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.742e-05/0.413, allocations: 11.44 kB / 1.105 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of SimCode: time 5.21e-07/0.413, allocations: 0 / 1.105 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of Templates: time 0.006641/0.4196, allocations: 3.112 MB / 1.108 GB, free: 12.69 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches