Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.49/1.49, allocations: 249.5 MB / 257 MB, free: 6.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 184.9 kB / 316.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.718/1.718, allocations: 205.3 MB / 0.5671 GB, free: 15.84 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009564/0.0009566, allocations: 93.33 kB / 0.6714 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.814e-05/1.816e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2152, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7303/0.9455, allocations: 175.2 MB / 1.056 GB, free: 12.93 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.9458, allocations: 94.27 kB / 1.056 GB, free: 12.88 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.07288/1.019, allocations: 31.11 MB / 1.087 GB, free: 2.91 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.623e-06/1.019, allocations: 4 kB / 1.087 GB, free: 2.906 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.399e-05/1.019, allocations: 16 kB / 1.087 GB, free: 2.891 MB / 0.698 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.001283/1.02, allocations: 0.7955 MB / 1.088 GB, free: 2.09 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/1.02, allocations: 11.97 kB / 1.088 GB, free: 2.078 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001349/1.021, allocations: 205.8 kB / 1.088 GB, free: 1.879 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008897/1.022, allocations: 0.4893 MB / 1.088 GB, free: 1.402 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/1.022, allocations: 16 kB / 1.088 GB, free: 1.387 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/1.023, allocations: 35.98 kB / 1.088 GB, free: 1.352 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007513/1.023, allocations: 463.5 kB / 1.089 GB, free: 1.055 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009854/1.024, allocations: 0.7882 MB / 1.09 GB, free: 328 kB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/1.024, allocations: 7.438 kB / 1.09 GB, free: 324 kB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.916e-05/1.024, allocations: 0 / 1.09 GB, free: 324 kB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.163e-05/1.025, allocations: 48.47 kB / 1.09 GB, free: 280 kB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004292/1.029, allocations: 4.477 MB / 1.094 GB, free: 11.86 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003831/1.029, allocations: 275.2 kB / 1.094 GB, free: 11.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/1.029, allocations: 211.8 kB / 1.094 GB, free: 11.55 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.919e-05/1.03, allocations: 8 kB / 1.094 GB, free: 11.54 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/1.03, allocations: 37.75 kB / 1.094 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=33): time 2.955e-06/1.03, allocations: 0 / 1.094 GB, free: 11.5 MB / 0.7136 GB Notification: Performance of matching and sorting (n=40): time 0.003701/1.033, allocations: 1.988 MB / 1.096 GB, free: 9.832 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/1.033, allocations: 55.41 kB / 1.096 GB, free: 9.766 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003542/1.034, allocations: 330.9 kB / 1.097 GB, free: 9.504 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/1.034, allocations: 25.7 kB / 1.097 GB, free: 9.473 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002186/1.034, allocations: 336 kB / 1.097 GB, free: 9.211 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.000118/1.034, allocations: 143.2 kB / 1.097 GB, free: 9.086 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/1.034, allocations: 0 / 1.097 GB, free: 9.086 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001434/1.034, allocations: 360.8 kB / 1.098 GB, free: 8.742 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/1.035, allocations: 216.9 kB / 1.098 GB, free: 8.609 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003989/1.035, allocations: 368.2 kB / 1.098 GB, free: 8.273 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/1.035, allocations: 275.2 kB / 1.098 GB, free: 8.098 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/1.035, allocations: 0 / 1.098 GB, free: 8.098 MB / 0.7136 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001404/1.037, allocations: 0.8206 MB / 1.099 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/1.037, allocations: 8 kB / 1.099 GB, free: 7.449 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.037, allocations: 7.953 kB / 1.099 GB, free: 7.441 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007262/1.038, allocations: 216.3 kB / 1.099 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004812/1.038, allocations: 110.5 kB / 1.1 GB, free: 7.152 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004321/1.042, allocations: 4.737 MB / 1.104 GB, free: 2.527 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004035/1.043, allocations: 19.97 kB / 1.104 GB, free: 2.508 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.98e-05/1.043, allocations: 19.75 kB / 1.104 GB, free: 2.492 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 4,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001551/1.043, allocations: 124.2 kB / 1.104 GB, free: 2.367 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.375e-05/1.043, allocations: 51.5 kB / 1.104 GB, free: 2.316 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/1.044, allocations: 0.7189 MB / 1.105 GB, free: 1.785 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/1.044, allocations: 7.984 kB / 1.105 GB, free: 1.777 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/1.044, allocations: 7.938 kB / 1.105 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/1.044, allocations: 192 / 1.105 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/1.047, allocations: 1.362 MB / 1.106 GB, free: 0.6367 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/1.047, allocations: 0 / 1.106 GB, free: 0.6367 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003944/1.047, allocations: 71.88 kB / 1.107 GB, free: 0.5664 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006307/1.048, allocations: 196.7 kB / 1.107 GB, free: 412 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.005e-05/1.048, allocations: 7.984 kB / 1.107 GB, free: 404 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/1.052, allocations: 4.672 MB / 1.111 GB, free: 11.81 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/1.052, allocations: 3.984 kB / 1.111 GB, free: 11.8 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001712/1.053, allocations: 1.169 MB / 1.112 GB, free: 10.83 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/1.054, allocations: 161.7 kB / 1.113 GB, free: 10.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.57e-05/1.054, allocations: 7.984 kB / 1.113 GB, free: 10.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003113/1.054, allocations: 20.03 kB / 1.113 GB, free: 10.64 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.825e-05/1.054, allocations: 39.48 kB / 1.113 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/1.054, allocations: 15.31 kB / 1.113 GB, free: 10.6 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002547/1.054, allocations: 249.5 kB / 1.113 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.4e-07/1.054, allocations: 0 / 1.113 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0007173/1.055, allocations: 159.9 kB / 1.113 GB, free: 10.25 MB / 0.7292 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 4,(2,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001826/1.055, allocations: 115.2 kB / 1.113 GB, free: 10.13 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.001407/1.057, allocations: 0.9327 MB / 1.114 GB, free: 9.359 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.057, allocations: 0 / 1.114 GB, free: 9.359 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0008229/1.058, allocations: 0.6388 MB / 1.115 GB, free: 8.785 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007054/1.058, allocations: 140.7 kB / 1.115 GB, free: 8.676 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/1.06, allocations: 0.9325 MB / 1.116 GB, free: 7.793 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/1.061, allocations: 0.9581 MB / 1.117 GB, free: 6.824 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003851/1.061, allocations: 104.6 kB / 1.117 GB, free: 6.723 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.515e-05/1.061, allocations: 35.44 kB / 1.117 GB, free: 6.688 MB / 0.7292 GB Notification: Performance of SimCode: time 4.61e-07/1.061, allocations: 0 / 1.117 GB, free: 6.688 MB / 0.7292 GB Notification: Performance of Templates: time 0.01262/1.074, allocations: 7.472 MB / 1.124 GB, free: 15.33 MB / 0.7448 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches