Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.v.1.|load.v.2.|E.terminal.v.1.|E.terminal.v.2.",fileNamePrefix="Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 102 kB / 16.4 MB, free: 6.461 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.001641/0.001641, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.441/1.441, allocations: 222.9 MB / 241 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.599/2.599, allocations: 461.9 MB / 0.7355 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 67.89 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8992/0.9006, allocations: 157.4 MB / 1.208 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.00626/0.9069, allocations: 4.388 MB / 1.213 GB, free: 9.164 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.005145/0.9121, allocations: 3.264 MB / 1.216 GB, free: 5.891 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000337/0.9124, allocations: 15.94 kB / 1.216 GB, free: 5.875 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.9142, allocations: 0.5057 MB / 1.216 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001088/0.9153, allocations: 394 kB / 1.217 GB, free: 4.98 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007195/0.916, allocations: 251.4 kB / 1.217 GB, free: 4.734 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0008213/0.9168, allocations: 0.5911 MB / 1.218 GB, free: 4.145 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007166/0.9176, allocations: 0.5245 MB / 1.218 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004888/0.9181, allocations: 295 kB / 1.218 GB, free: 3.332 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004099/0.9185, allocations: 271 kB / 1.219 GB, free: 3.066 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.811e-05/0.9186, allocations: 40 kB / 1.219 GB, free: 3.027 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005409/0.9191, allocations: 299.5 kB / 1.219 GB, free: 2.734 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.000166/0.9193, allocations: 167.5 kB / 1.219 GB, free: 2.57 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002247/0.9195, allocations: 226.9 kB / 1.219 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.9205, allocations: 0.7886 MB / 1.22 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.9206, allocations: 4 kB / 1.22 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.954e-06/0.9206, allocations: 0 / 1.22 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.9206, allocations: 0 / 1.22 GB, free: 1.555 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001477/0.9221, allocations: 0.7753 MB / 1.221 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.9221, allocations: 11.97 kB / 1.221 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002959/0.9251, allocations: 0.6828 MB / 1.222 GB, free: 32 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007524/0.9258, allocations: 447.8 kB / 1.222 GB, free: 15.56 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.9259, allocations: 25.03 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.159e-05/0.926, allocations: 40.05 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.9276, allocations: 0.7825 MB / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.9276, allocations: 0 / 1.223 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.9277, allocations: 19.98 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.9278, allocations: 40.61 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002067/0.9299, allocations: 0.8764 MB / 1.224 GB, free: 13.74 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00395/0.9338, allocations: 2.804 MB / 1.226 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001714/0.9356, allocations: 0.5019 MB / 1.227 GB, free: 10.21 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007086/0.9363, allocations: 264.5 kB / 1.227 GB, free: 9.945 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.9364, allocations: 93.09 kB / 1.227 GB, free: 9.836 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.9365, allocations: 30.56 kB / 1.227 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=16): time 2.214e-06/0.9365, allocations: 0 / 1.227 GB, free: 9.797 MB / 0.9512 GB Notification: Performance of matching and sorting (n=24): time 0.01237/0.9488, allocations: 3.064 MB / 1.23 GB, free: 6.699 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.9489, allocations: 55.41 kB / 1.23 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005157/0.9495, allocations: 405.5 kB / 1.231 GB, free: 6.23 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.226e-05/0.9495, allocations: 29.7 kB / 1.231 GB, free: 6.195 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.9497, allocations: 235.8 kB / 1.231 GB, free: 5.957 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.912e-05/0.9498, allocations: 82.77 kB / 1.231 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.95, allocations: 69.67 kB / 1.231 GB, free: 5.801 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.9501, allocations: 350.8 kB / 1.231 GB, free: 5.449 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009703/0.9511, allocations: 352.5 kB / 1.232 GB, free: 5.102 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009939/0.9521, allocations: 428.5 kB / 1.232 GB, free: 4.648 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001922/0.954, allocations: 0.7581 MB / 1.233 GB, free: 3.863 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.954, allocations: 4 kB / 1.233 GB, free: 3.859 MB / 0.9512 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005119/0.9592, allocations: 1.495 MB / 1.234 GB, free: 2.352 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.9592, allocations: 4 kB / 1.234 GB, free: 2.348 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.9592, allocations: 7.938 kB / 1.234 GB, free: 2.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003523/0.9628, allocations: 0.7741 MB / 1.235 GB, free: 1.559 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006939/0.9635, allocations: 127.8 kB / 1.235 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/0.9705, allocations: 4.836 MB / 1.24 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008943/0.9714, allocations: 119.9 kB / 1.24 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.79e-05/0.9715, allocations: 11.98 kB / 1.24 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001281/0.9728, allocations: 0.5347 MB / 1.241 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001002/0.9738, allocations: 413.4 kB / 1.241 GB, free: 11.21 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001907/0.9757, allocations: 0.7295 MB / 1.242 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.925e-06/0.9758, allocations: 0 / 1.242 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004379/0.9801, allocations: 1.27 MB / 1.243 GB, free: 9.176 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.9802, allocations: 9.875 kB / 1.243 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.9802, allocations: 0 / 1.243 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002285/0.9825, allocations: 0.5003 MB / 1.244 GB, free: 8.664 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007098/0.9832, allocations: 139.8 kB / 1.244 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00359/0.9868, allocations: 2.598 MB / 1.246 GB, free: 5.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008113/0.9876, allocations: 115.8 kB / 1.246 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.311e-05/0.9877, allocations: 12 kB / 1.246 GB, free: 5.664 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002158/0.9879, allocations: 204.2 kB / 1.247 GB, free: 5.457 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.9881, allocations: 35.61 kB / 1.247 GB, free: 5.422 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004579/0.9927, allocations: 1.36 MB / 1.248 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.952e-06/0.9927, allocations: 4 kB / 1.248 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.9927, allocations: 0 / 1.248 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.9927, allocations: 0 / 1.248 GB, free: 4.039 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005327/0.998, allocations: 1.988 MB / 1.25 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.9981, allocations: 7.984 kB / 1.25 GB, free: 1.977 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.9985, allocations: 75.94 kB / 1.25 GB, free: 1.902 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/1.002, allocations: 0.7077 MB / 1.251 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-05/1.002, allocations: 11.94 kB / 1.251 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006277/1.008, allocations: 4.674 MB / 1.255 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.008, allocations: 4.031 kB / 1.255 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004405/1.012, allocations: 1.353 MB / 1.257 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/1.013, allocations: 160.7 kB / 1.257 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001267/1.013, allocations: 11.94 kB / 1.257 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006877/1.014, allocations: 87.84 kB / 1.257 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001404/1.014, allocations: 23.97 kB / 1.257 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-05/1.014, allocations: 8 kB / 1.257 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0005007/1.014, allocations: 311.1 kB / 1.257 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2e-07/1.014, allocations: 0 / 1.257 GB, free: 10.22 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009994/1.015, allocations: 196 kB / 1.257 GB, free: 10.03 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002186/1.016, allocations: 115.1 kB / 1.257 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003954/1.019, allocations: 1.566 MB / 1.259 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/1.02, allocations: 0 / 1.259 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001298/1.021, allocations: 0.6302 MB / 1.26 GB, free: 7.645 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008523/1.022, allocations: 127.1 kB / 1.26 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/1.024, allocations: 1.069 MB / 1.261 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005661/1.025, allocations: 0.9092 MB / 1.262 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/1.025, allocations: 35.42 kB / 1.262 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of SimCode: time 8.62e-07/1.025, allocations: 0 / 1.262 GB, free: 5.445 MB / 0.9825 GB Notification: Performance of Templates: time 0.01818/1.043, allocations: 12.55 MB / 1.274 GB, free: 8.922 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches