Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001531/0.001531, allocations: 106.5 kB / 16.35 MB, free: 5.824 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.001634/0.001634, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.486/1.486, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.595/2.595, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.28 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3832/0.3845, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.00287/0.3874, allocations: 1.428 MB / 1.028 GB, free: 0.5977 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003402/0.3909, allocations: 2.666 MB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.2e-05/0.3909, allocations: 4 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.3925, allocations: 0.5789 MB / 1.031 GB, free: 13.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.952e-05/0.3925, allocations: 19.91 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 5.32e-06/0.3925, allocations: 0 / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00027/0.3928, allocations: 158.9 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.476e-05/0.3929, allocations: 32.41 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.804e-05/0.393, allocations: 59.7 kB / 1.032 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.3931, allocations: 79.59 kB / 1.032 GB, free: 12.99 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.512e-05/0.3931, allocations: 4 kB / 1.032 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.3942, allocations: 471.3 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.485e-05/0.3943, allocations: 43.77 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.3944, allocations: 95.42 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006688/0.3951, allocations: 442.2 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.396e-06/0.3951, allocations: 3.984 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3951, allocations: 3.938 kB / 1.033 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.259e-05/0.3951, allocations: 0 / 1.033 GB, free: 11.95 MB / 0.8106 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.0008421/0.3959, allocations: 0.5451 MB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.396, allocations: 12.03 kB / 1.033 GB, free: 11.34 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.3962, allocations: 99.94 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.3965, allocations: 302.4 kB / 1.034 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.105e-05/0.3966, allocations: 154.9 kB / 1.034 GB, free: 10.75 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.324e-05/0.3967, allocations: 150.9 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.171e-05/0.3967, allocations: 109.5 kB / 1.034 GB, free: 10.49 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.767e-05/0.3968, allocations: 83.22 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.902e-05/0.3969, allocations: 154.5 kB / 1.034 GB, free: 10.26 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.276e-05/0.397, allocations: 150.6 kB / 1.034 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.342e-05/0.397, allocations: 150.6 kB / 1.034 GB, free: 9.961 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004444/0.3975, allocations: 0.5443 MB / 1.035 GB, free: 9.367 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 9.272e-05/0.3976, allocations: 169.1 kB / 1.035 GB, free: 9.191 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.135e-05/0.3976, allocations: 80.14 kB / 1.035 GB, free: 9.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.3977, allocations: 75.28 kB / 1.035 GB, free: 9.035 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.636e-05/0.3977, allocations: 105.8 kB / 1.035 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=0): time 1.303e-06/0.3977, allocations: 0 / 1.035 GB, free: 8.922 MB / 0.8106 GB Notification: Performance of matching and sorting (n=0): time 0.0001935/0.3979, allocations: 65.28 kB / 1.035 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.398, allocations: 130.7 kB / 1.036 GB, free: 8.711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004611/0.3985, allocations: 429.2 kB / 1.036 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.3985, allocations: 33.64 kB / 1.036 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.3987, allocations: 132.5 kB / 1.036 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.386e-06/0.3987, allocations: 0 / 1.036 GB, free: 8.113 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.621e-05/0.3988, allocations: 89.66 kB / 1.036 GB, free: 8.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.3989, allocations: 342.8 kB / 1.037 GB, free: 7.676 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.3991, allocations: 100.5 kB / 1.037 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.3992, allocations: 161.3 kB / 1.037 GB, free: 7.402 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003248/0.3996, allocations: 305.6 kB / 1.037 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3996, allocations: 0 / 1.037 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005308/0.4001, allocations: 333 kB / 1.037 GB, free: 6.75 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.4001, allocations: 7.938 kB / 1.037 GB, free: 6.742 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.4002, allocations: 7.938 kB / 1.037 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.4002, allocations: 0 / 1.037 GB, free: 6.734 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.307e-06/0.4002, allocations: 4 kB / 1.037 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4002, allocations: 0 / 1.037 GB, free: 6.73 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001397/0.4003, allocations: 43.28 kB / 1.037 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.4004, allocations: 7.984 kB / 1.038 GB, free: 6.68 MB / 0.8106 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.0002309/0.4006, allocations: 253.2 kB / 1.038 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.647e-05/0.4007, allocations: 128.6 kB / 1.038 GB, free: 6.289 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.896e-05/0.4008, allocations: 115 kB / 1.038 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-05/0.4008, allocations: 184.2 kB / 1.038 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.328e-05/0.4009, allocations: 176.3 kB / 1.038 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.271e-05/0.401, allocations: 180.3 kB / 1.038 GB, free: 5.617 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.4014, allocations: 485.1 kB / 1.039 GB, free: 5.086 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.89e-05/0.4014, allocations: 105 kB / 1.039 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.954e-05/0.4015, allocations: 104.9 kB / 1.039 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.4016, allocations: 184.2 kB / 1.039 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.4017, allocations: 180.2 kB / 1.04 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001176/0.4018, allocations: 192.4 kB / 1.04 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001064/0.4019, allocations: 176.3 kB / 1.04 GB, free: 4.121 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002107/0.4022, allocations: 331.4 kB / 1.04 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.4023, allocations: 197.8 kB / 1.04 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.4024, allocations: 188.1 kB / 1.041 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.4026, allocations: 109 kB / 1.041 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001064/0.4027, allocations: 180.2 kB / 1.041 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.376e-05/0.4027, allocations: 105 kB / 1.041 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0002771/0.403, allocations: 287 kB / 1.041 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.403, allocations: 0 / 1.041 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004301/0.4035, allocations: 80 kB / 1.041 GB, free: 2.598 MB / 0.8106 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.0004187/0.4039, allocations: 309.6 kB / 1.042 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000223/0.4041, allocations: 163.8 kB / 1.042 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.4041, allocations: 0 / 1.042 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.4041, allocations: 0 / 1.042 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004434/0.4046, allocations: 469.1 kB / 1.042 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000751/0.4053, allocations: 0.4914 MB / 1.043 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.4058, allocations: 0.7743 MB / 1.043 GB, free: 360 kB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.734e-05/0.4059, allocations: 4 kB / 1.043 GB, free: 356 kB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.435e-05/0.4059, allocations: 11.44 kB / 1.043 GB, free: 344 kB / 0.8106 GB Notification: Performance of SimCode: time 4.3e-07/0.4059, allocations: 0 / 1.043 GB, free: 344 kB / 0.8106 GB Notification: Performance of Templates: time 0.007169/0.4131, allocations: 3.071 MB / 1.046 GB, free: 13.27 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.makefile (rm -f Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & ./Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches