Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load_sc_1.v.1.|load_sc_1.v.2.|load_sc_2.v.1.|load_sc_2.v.2.|load_sc_3.v.1.|load_sc_3.v.2.|load_sc_1.i.1.|load_sc_1.i.2.|load_sc_2.i.1.|load_sc_2.i.2.|load_sc_3.i.1.|load_sc_3.i.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005261/0.005261, allocations: 103.9 kB / 15.73 MB, free: 6.445 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.00117/0.00117, allocations: 191.2 kB / 16.67 MB, free: 6.355 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.744/2.744, allocations: 461.9 MB / 0.7347 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 68.09 kB / 1.054 GB, free: 7.094 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3512, allocations: 157.4 MB / 1.208 GB, free: 9.59 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007237/0.3584, allocations: 5.469 MB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004445/0.3629, allocations: 2.619 MB / 1.216 GB, free: 1.465 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005591/0.3635, allocations: 23.88 kB / 1.216 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001914/0.3655, allocations: 0.6836 MB / 1.216 GB, free: 0.7578 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001135/0.3666, allocations: 409.7 kB / 1.217 GB, free: 364 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001082/0.3677, allocations: 395.1 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001358/0.3691, allocations: 0.9475 MB / 1.218 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007908/0.3699, allocations: 462.5 kB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006992/0.3706, allocations: 382.5 kB / 1.219 GB, free: 14.19 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007139/0.3713, allocations: 406.4 kB / 1.219 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.3715, allocations: 48 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008018/0.3723, allocations: 363.3 kB / 1.22 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000369/0.3727, allocations: 251.3 kB / 1.22 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0004965/0.3732, allocations: 350.2 kB / 1.22 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001245/0.3744, allocations: 0.9695 MB / 1.221 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3744, allocations: 0 / 1.221 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3744, allocations: 0 / 1.221 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 3.37e-05/0.3745, allocations: 0 / 1.221 GB, free: 11.83 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001994/0.3765, allocations: 0.9776 MB / 1.222 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3765, allocations: 12.62 kB / 1.222 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001494/0.378, allocations: 191.8 kB / 1.222 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009153/0.3789, allocations: 0.5179 MB / 1.223 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.168e-05/0.379, allocations: 41.36 kB / 1.223 GB, free: 10 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.3792, allocations: 52.48 kB / 1.223 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.3803, allocations: 0.8241 MB / 1.224 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/0.3804, allocations: 7.938 kB / 1.224 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.104e-05/0.3804, allocations: 31.98 kB / 1.224 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001758/0.3806, allocations: 60.95 kB / 1.224 GB, free: 8.945 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008807/0.3815, allocations: 0.5736 MB / 1.224 GB, free: 8.371 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005073/0.3866, allocations: 4.565 MB / 1.229 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006095/0.3872, allocations: 299.2 kB / 1.229 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.3876, allocations: 225.3 kB / 1.229 GB, free: 2.93 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.802e-05/0.3876, allocations: 4.281 kB / 1.229 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.3877, allocations: 42.84 kB / 1.229 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 1.904e-06/0.3877, allocations: 0 / 1.229 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40): time 0.005804/0.3935, allocations: 2.635 MB / 1.232 GB, free: 116 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.3935, allocations: 59.34 kB / 1.232 GB, free: 44 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005912/0.3941, allocations: 458 kB / 1.232 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.3942, allocations: 33.7 kB / 1.232 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.3945, allocations: 347.6 kB / 1.233 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/0.3946, allocations: 145.9 kB / 1.233 GB, free: 15.05 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.3948, allocations: 102.2 kB / 1.233 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000192/0.395, allocations: 358.8 kB / 1.233 GB, free: 14.58 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004189/0.3955, allocations: 237 kB / 1.234 GB, free: 14.35 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.396, allocations: 410.4 kB / 1.234 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009462/0.397, allocations: 0.6779 MB / 1.235 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.397, allocations: 0 / 1.235 GB, free: 13.13 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001845/0.3989, allocations: 0.921 MB / 1.236 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.3989, allocations: 11.94 kB / 1.236 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.3989, allocations: 4 kB / 1.236 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000842/0.3998, allocations: 223 kB / 1.236 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005388/0.4003, allocations: 115.8 kB / 1.236 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006111/0.4064, allocations: 5.336 MB / 1.241 GB, free: 6.082 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.4072, allocations: 32.03 kB / 1.241 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.965e-05/0.4072, allocations: 24 kB / 1.241 GB, free: 6.027 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 initialization (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005235/0.4078, allocations: 228 kB / 1.241 GB, free: 5.797 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.408, allocations: 63.27 kB / 1.241 GB, free: 5.734 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001655/0.4096, allocations: 0.766 MB / 1.242 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.4097, allocations: 4 kB / 1.242 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4097, allocations: 0 / 1.242 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4097, allocations: 4.188 kB / 1.242 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.4129, allocations: 1.498 MB / 1.244 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4129, allocations: 0 / 1.244 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004141/0.4133, allocations: 71.88 kB / 1.244 GB, free: 3.285 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007378/0.414, allocations: 202.5 kB / 1.244 GB, free: 3.078 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.4141, allocations: 16 kB / 1.244 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6854/1.1, allocations: 5.265 MB / 1.249 GB, free: 35.43 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.1, allocations: 6.156 kB / 1.249 GB, free: 35.43 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/1.102, allocations: 1.132 MB / 1.25 GB, free: 35.22 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002875/1.102, allocations: 170.3 kB / 1.25 GB, free: 35.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/1.102, allocations: 14.53 kB / 1.25 GB, free: 35.12 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003195/1.102, allocations: 26.7 kB / 1.25 GB, free: 35.12 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/1.102, allocations: 34.42 kB / 1.25 GB, free: 35.12 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.963e-05/1.102, allocations: 16.97 kB / 1.25 GB, free: 35.12 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003556/1.103, allocations: 311 kB / 1.251 GB, free: 35.03 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.103, allocations: 0 / 1.251 GB, free: 35.03 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007172/1.104, allocations: 170.3 kB / 1.251 GB, free: 35.03 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000156/1.104, allocations: 109.6 kB / 1.251 GB, free: 34.94 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001589/1.105, allocations: 1.013 MB / 1.252 GB, free: 34.61 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/1.105, allocations: 0.8125 kB / 1.252 GB, free: 34.61 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007773/1.106, allocations: 0.6832 MB / 1.253 GB, free: 34.27 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008262/1.107, allocations: 182.3 kB / 1.253 GB, free: 34.26 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/1.109, allocations: 1.248 MB / 1.254 GB, free: 33.78 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/1.109, allocations: 0.9519 MB / 1.255 GB, free: 33.07 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003075/1.109, allocations: 111.2 kB / 1.255 GB, free: 33.06 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-05/1.109, allocations: 36.84 kB / 1.255 GB, free: 33.05 MB / 0.9981 GB Notification: Performance of SimCode: time 4.51e-07/1.109, allocations: 0 / 1.255 GB, free: 33.05 MB / 0.9981 GB Notification: Performance of Templates: time 0.02037/1.13, allocations: 9.15 MB / 1.264 GB, free: 32.55 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches