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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.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.001521/0.001521, allocations: 108.5 kB / 16.27 MB, free: 6.41 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.001468/0.001468, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.359/1.359, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.636/2.636, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002225/0.002225, allocations: 64.58 kB / 0.9245 GB, free: 4 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7865/0.7888, allocations: 162.2 MB / 1.083 GB, free: 1.66 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.00729/0.7961, allocations: 5.465 MB / 1.088 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.004989/0.8011, allocations: 2.611 MB / 1.091 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004998/0.8017, allocations: 20.91 kB / 1.091 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001884/0.8036, allocations: 0.6903 MB / 1.092 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001105/0.8047, allocations: 409.6 kB / 1.092 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.8058, allocations: 390.9 kB / 1.092 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001165/0.807, allocations: 0.9538 MB / 1.093 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007091/0.8077, allocations: 464.4 kB / 1.094 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000531/0.8083, allocations: 376.9 kB / 1.094 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005609/0.8088, allocations: 396.4 kB / 1.094 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.15e-05/0.8089, allocations: 52.66 kB / 1.094 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008063/0.8097, allocations: 363.5 kB / 1.095 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.8101, allocations: 256.1 kB / 1.095 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0004048/0.8105, allocations: 349 kB / 1.095 GB, free: 9.918 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001275/0.8118, allocations: 0.9546 MB / 1.096 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8118, allocations: 1.125 kB / 1.096 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.923e-06/0.8118, allocations: 0 / 1.096 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.02e-05/0.8118, allocations: 0 / 1.096 GB, free: 9.59 MB / 0.8419 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.001719/0.8135, allocations: 0.9693 MB / 1.097 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.8136, allocations: 9.344 kB / 1.097 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001377/0.815, allocations: 201.7 kB / 1.097 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007814/0.8158, allocations: 487.7 kB / 1.098 GB, free: 8.496 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.8158, allocations: 34.47 kB / 1.098 GB, free: 8.484 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.816, allocations: 59.05 kB / 1.098 GB, free: 8.461 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.8173, allocations: 0.8315 MB / 1.099 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.8173, allocations: 2.688 kB / 1.099 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.983e-05/0.8174, allocations: 24.03 kB / 1.099 GB, free: 7.965 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/0.8176, allocations: 68.02 kB / 1.099 GB, free: 7.957 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009419/0.8186, allocations: 0.5725 MB / 1.099 GB, free: 7.754 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00505/0.8236, allocations: 4.583 MB / 1.104 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004866/0.8241, allocations: 295 kB / 1.104 GB, free: 3.73 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.8245, allocations: 227 kB / 1.104 GB, free: 3.641 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.8245, allocations: 7.5 kB / 1.104 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.8245, allocations: 41.09 kB / 1.104 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=33): time 2.775e-06/0.8246, allocations: 0 / 1.104 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of matching and sorting (n=40): time 0.005882/0.8304, allocations: 2.622 MB / 1.107 GB, free: 2.211 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.8305, allocations: 64.22 kB / 1.107 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005579/0.8311, allocations: 456.7 kB / 1.108 GB, free: 1.918 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/0.8311, allocations: 31.08 kB / 1.108 GB, free: 1.883 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.8314, allocations: 341.5 kB / 1.108 GB, free: 1.605 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.8316, allocations: 146.3 kB / 1.108 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001757/0.8318, allocations: 102.6 kB / 1.108 GB, free: 1.434 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001959/0.832, allocations: 363.6 kB / 1.108 GB, free: 1.098 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000379/0.8323, allocations: 237.8 kB / 1.109 GB, free: 1.016 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005061/0.8329, allocations: 408.4 kB / 1.109 GB, free: 0.7227 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000932/0.8338, allocations: 0.6773 MB / 1.11 GB, free: 292 kB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.8338, allocations: 1.031 kB / 1.11 GB, free: 292 kB / 0.8419 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001827/0.8356, allocations: 0.9249 MB / 1.111 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.8357, allocations: 6.125 kB / 1.111 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.8357, allocations: 7.438 kB / 1.111 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008114/0.8365, allocations: 226.9 kB / 1.111 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005023/0.837, allocations: 116.8 kB / 1.111 GB, free: 15.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005703/0.8427, allocations: 5.337 MB / 1.116 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000581/0.8433, allocations: 37.88 kB / 1.116 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.027e-05/0.8434, allocations: 22.8 kB / 1.116 GB, free: 11.12 MB / 0.8575 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.0003889/0.8438, allocations: 227.2 kB / 1.116 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.8439, allocations: 60.42 kB / 1.117 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/0.8455, allocations: 0.7731 MB / 1.117 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.8455, allocations: 4.906 kB / 1.117 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.8455, allocations: 1.969 kB / 1.117 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.8456, allocations: 2.906 kB / 1.117 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.8482, allocations: 1.503 MB / 1.119 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.8482, allocations: 1.188 kB / 1.119 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003632/0.8486, allocations: 63.97 kB / 1.119 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006914/0.8493, allocations: 211.2 kB / 1.119 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.783e-05/0.8494, allocations: 13.59 kB / 1.119 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005582/0.8549, allocations: 5.281 MB / 1.124 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.855, allocations: 2.156 kB / 1.124 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.857, allocations: 1.135 MB / 1.125 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003061/0.8574, allocations: 172.2 kB / 1.125 GB, free: 4.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.612e-05/0.8574, allocations: 12.94 kB / 1.125 GB, free: 4.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003291/0.8578, allocations: 24.58 kB / 1.126 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.8579, allocations: 38.86 kB / 1.126 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.8579, allocations: 9.688 kB / 1.126 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004241/0.8584, allocations: 316.4 kB / 1.126 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8584, allocations: 0 / 1.126 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007588/0.8591, allocations: 167.3 kB / 1.126 GB, free: 4.148 MB / 0.8575 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.0001783/0.8593, allocations: 117.8 kB / 1.126 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001857/0.8612, allocations: 1.06 MB / 1.127 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.8612, allocations: 1.125 kB / 1.127 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/0.8622, allocations: 0.6768 MB / 1.128 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009011/0.8632, allocations: 184.9 kB / 1.128 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00229/0.8655, allocations: 1.316 MB / 1.129 GB, free: 2.152 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000674/0.8661, allocations: 0.9544 MB / 1.13 GB, free: 1.418 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.8663, allocations: 44.38 kB / 1.13 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of SimCode: time 7.41e-07/0.8663, allocations: 0 / 1.13 GB, free: 1.406 MB / 0.8575 GB Notification: Performance of Templates: time 0.02016/0.8865, allocations: 14.76 MB / 1.145 GB, free: 9.965 MB / 0.8731 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=400 -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/jenkins1/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