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.008877/0.008877, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001975/0.001975, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.517/1.517, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.582/2.582, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 67.89 kB / 1.054 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8376/0.839, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007489/0.8465, allocations: 5.474 MB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004948/0.8515, allocations: 2.626 MB / 1.216 GB, free: 5.492 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000636/0.8522, allocations: 19.88 kB / 1.216 GB, free: 5.473 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001957/0.8542, allocations: 0.6769 MB / 1.216 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001281/0.8555, allocations: 409.7 kB / 1.217 GB, free: 4.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.8567, allocations: 406.5 kB / 1.217 GB, free: 3.996 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001559/0.8583, allocations: 0.9436 MB / 1.218 GB, free: 3.047 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007905/0.8591, allocations: 462.3 kB / 1.218 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006819/0.8597, allocations: 378.5 kB / 1.219 GB, free: 2.227 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007106/0.8605, allocations: 398.5 kB / 1.219 GB, free: 1.836 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.8606, allocations: 48 kB / 1.219 GB, free: 1.789 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008165/0.8614, allocations: 367.2 kB / 1.22 GB, free: 1.43 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003515/0.8618, allocations: 251.3 kB / 1.22 GB, free: 1.184 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0005689/0.8624, allocations: 346.3 kB / 1.22 GB, free: 0.8438 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001363/0.8637, allocations: 0.9674 MB / 1.221 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.8638, allocations: 4 kB / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.324e-06/0.8638, allocations: 0 / 1.221 GB, free: 15.87 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.227e-05/0.8638, allocations: 0 / 1.221 GB, free: 15.87 MB / 0.9512 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.001864/0.8657, allocations: 0.9737 MB / 1.222 GB, free: 14.85 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.8657, allocations: 8.031 kB / 1.222 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.8672, allocations: 199.8 kB / 1.222 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008761/0.868, allocations: 0.5064 MB / 1.223 GB, free: 14.1 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.8681, allocations: 45.36 kB / 1.223 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001642/0.8683, allocations: 56.45 kB / 1.223 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.8695, allocations: 0.8279 MB / 1.224 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.134e-05/0.8695, allocations: 4 kB / 1.224 GB, free: 13.09 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.913e-05/0.8696, allocations: 23.98 kB / 1.224 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/0.8698, allocations: 72.88 kB / 1.224 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009057/0.8707, allocations: 0.5658 MB / 1.224 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004383/0.8751, allocations: 4.573 MB / 1.229 GB, free: 7.5 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.8756, allocations: 291.3 kB / 1.229 GB, free: 7.207 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002838/0.8758, allocations: 233.2 kB / 1.229 GB, free: 6.977 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.8759, allocations: 4.281 kB / 1.229 GB, free: 6.973 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.726e-05/0.8759, allocations: 34.84 kB / 1.229 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=33): time 2.074e-06/0.8759, allocations: 0 / 1.229 GB, free: 6.93 MB / 0.9512 GB Notification: Performance of matching and sorting (n=40): time 0.005237/0.8812, allocations: 2.652 MB / 1.232 GB, free: 4.148 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.8812, allocations: 55.41 kB / 1.232 GB, free: 4.082 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/0.8817, allocations: 457.9 kB / 1.232 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.229e-05/0.8817, allocations: 29.7 kB / 1.232 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.8819, allocations: 343.6 kB / 1.233 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.882, allocations: 146 kB / 1.233 GB, free: 3.098 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.8822, allocations: 102.2 kB / 1.233 GB, free: 2.988 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.8823, allocations: 362.8 kB / 1.233 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.8827, allocations: 240.9 kB / 1.234 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000418/0.8831, allocations: 410.3 kB / 1.234 GB, free: 1.918 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008076/0.8839, allocations: 0.674 MB / 1.235 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.8839, allocations: 4 kB / 1.235 GB, free: 1.168 MB / 0.9512 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00158/0.8855, allocations: 0.9212 MB / 1.236 GB, free: 236 kB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/0.8855, allocations: 5.719 kB / 1.236 GB, free: 232 kB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.8856, allocations: 12 kB / 1.236 GB, free: 220 kB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007546/0.8863, allocations: 222.8 kB / 1.236 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004827/0.8868, allocations: 115.8 kB / 1.236 GB, free: 15.88 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004797/0.8916, allocations: 5.328 MB / 1.241 GB, free: 10.13 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/0.892, allocations: 31.97 kB / 1.241 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-05/0.8921, allocations: 20 kB / 1.241 GB, free: 10.08 MB / 0.9669 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.00028/0.8924, allocations: 229.7 kB / 1.241 GB, free: 9.844 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-05/0.8925, allocations: 59.42 kB / 1.241 GB, free: 9.785 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00138/0.8939, allocations: 0.7774 MB / 1.242 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.8939, allocations: 4 kB / 1.242 GB, free: 8.988 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.8939, allocations: 4 kB / 1.242 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.8939, allocations: 0 / 1.242 GB, free: 8.984 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.8962, allocations: 1.497 MB / 1.244 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.8962, allocations: 4 kB / 1.244 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003524/0.8965, allocations: 67.88 kB / 1.244 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006673/0.8972, allocations: 202.5 kB / 1.244 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.672e-05/0.8973, allocations: 12 kB / 1.244 GB, free: 7.113 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004473/0.9017, allocations: 5.281 MB / 1.249 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.217e-06/0.9018, allocations: 4 kB / 1.249 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.9034, allocations: 1.131 MB / 1.25 GB, free: 232 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.9036, allocations: 176.4 kB / 1.25 GB, free: 36 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.697e-05/0.9037, allocations: 15.94 kB / 1.25 GB, free: 20 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.904, allocations: 19.97 kB / 1.25 GB, free: 0 / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.9041, allocations: 35.95 kB / 1.25 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.969e-05/0.9041, allocations: 16 kB / 1.25 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000307/0.9044, allocations: 306.9 kB / 1.251 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.232e-06/0.9044, allocations: 4.062 kB / 1.251 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006406/0.9051, allocations: 167.9 kB / 1.251 GB, free: 15.48 MB / 0.9825 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.0001798/0.9053, allocations: 115.2 kB / 1.251 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001524/0.9068, allocations: 1.017 MB / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.9068, allocations: 0 / 1.252 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0008885/0.9077, allocations: 0.6762 MB / 1.253 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008127/0.9086, allocations: 182 kB / 1.253 GB, free: 13.42 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.9106, allocations: 1.254 MB / 1.254 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005394/0.9112, allocations: 0.9493 MB / 1.255 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.000323/0.9115, allocations: 121 kB / 1.255 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.741e-05/0.9116, allocations: 35.44 kB / 1.255 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.9116, allocations: 0 / 1.255 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of Templates: time 0.01624/0.9279, allocations: 8.949 MB / 1.264 GB, free: 2.148 MB / 0.9825 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