Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001502/0.001502, allocations: 110.8 kB / 15.99 MB, free: 6.348 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.001622/0.001622, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.402/1.402, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.515/2.515, allocations: 437 MB / 0.7107 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 68.33 kB / 0.8694 GB, free: 2.555 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.371/0.3732, allocations: 151.6 MB / 1.017 GB, free: 10.99 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.007213/0.3804, allocations: 4.425 MB / 1.022 GB, free: 6.543 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.005393/0.3859, allocations: 3.241 MB / 1.025 GB, free: 3.289 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005055/0.3864, allocations: 11.94 kB / 1.025 GB, free: 3.277 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001836/0.3883, allocations: 482.8 kB / 1.025 GB, free: 2.805 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001324/0.3896, allocations: 355.2 kB / 1.026 GB, free: 2.457 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008129/0.3905, allocations: 237 kB / 1.026 GB, free: 2.227 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0009535/0.3914, allocations: 0.5956 MB / 1.027 GB, free: 1.629 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009148/0.3924, allocations: 0.5719 MB / 1.027 GB, free: 1.059 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006198/0.393, allocations: 279.1 kB / 1.027 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005715/0.3936, allocations: 295 kB / 1.028 GB, free: 0.4961 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.3937, allocations: 36 kB / 1.028 GB, free: 472 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000691/0.3944, allocations: 299.5 kB / 1.028 GB, free: 172 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.3946, allocations: 167.5 kB / 1.028 GB, free: 4 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003615/0.395, allocations: 223 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0009275/0.3959, allocations: 0.6353 MB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.396, allocations: 0 / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.813e-06/0.396, allocations: 3.938 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.038e-05/0.396, allocations: 4 kB / 1.029 GB, free: 15.14 MB / 0.8106 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.001763/0.3978, allocations: 0.7753 MB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.3978, allocations: 12.03 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002965/0.4008, allocations: 0.675 MB / 1.03 GB, free: 13.63 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008281/0.4016, allocations: 439.8 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.813e-05/0.4017, allocations: 21.03 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.4018, allocations: 36.11 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001706/0.4035, allocations: 0.7864 MB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.4036, allocations: 7.875 kB / 1.032 GB, free: 12.28 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.4036, allocations: 19.97 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001229/0.4038, allocations: 44.61 kB / 1.032 GB, free: 12.21 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/0.4059, allocations: 0.8687 MB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004194/0.4101, allocations: 2.804 MB / 1.035 GB, free: 8.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001699/0.4118, allocations: 0.5175 MB / 1.036 GB, free: 7.793 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007052/0.4125, allocations: 256.9 kB / 1.036 GB, free: 7.539 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.4127, allocations: 93.03 kB / 1.036 GB, free: 7.43 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.4127, allocations: 34.56 kB / 1.036 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=16): time 3.216e-06/0.4127, allocations: 0 / 1.036 GB, free: 7.387 MB / 0.8106 GB Notification: Performance of matching and sorting (n=24): time 0.01247/0.4252, allocations: 3.061 MB / 1.039 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.4253, allocations: 55.39 kB / 1.039 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006473/0.4259, allocations: 397.6 kB / 1.04 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.792e-05/0.426, allocations: 29.7 kB / 1.04 GB, free: 3.797 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.4262, allocations: 239.7 kB / 1.04 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.832e-05/0.4263, allocations: 82.84 kB / 1.04 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.4265, allocations: 77.58 kB / 1.04 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4267, allocations: 342.8 kB / 1.04 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009262/0.4276, allocations: 364.4 kB / 1.041 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009612/0.4286, allocations: 430.2 kB / 1.041 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.4304, allocations: 0.7636 MB / 1.042 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4305, allocations: 0 / 1.042 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005133/0.4356, allocations: 1.495 MB / 1.043 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.4357, allocations: 8 kB / 1.043 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.4357, allocations: 0 / 1.043 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003662/0.4394, allocations: 0.7742 MB / 1.044 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007078/0.4401, allocations: 135.8 kB / 1.044 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007377/0.4475, allocations: 4.841 MB / 1.049 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008966/0.4484, allocations: 119.8 kB / 1.049 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.544e-05/0.4485, allocations: 19.98 kB / 1.049 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001263/0.4498, allocations: 0.5294 MB / 1.05 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009492/0.4508, allocations: 416 kB / 1.05 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001842/0.4526, allocations: 0.7295 MB / 1.051 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.687e-06/0.4527, allocations: 0 / 1.051 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004391/0.4571, allocations: 1.274 MB / 1.052 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.365e-05/0.4571, allocations: 6.188 kB / 1.052 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.4571, allocations: 4 kB / 1.052 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/0.4594, allocations: 0.4964 MB / 1.052 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007204/0.4602, allocations: 139.8 kB / 1.053 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003594/0.4638, allocations: 2.605 MB / 1.055 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008763/0.4647, allocations: 107.9 kB / 1.055 GB, free: 3.25 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.012e-05/0.4648, allocations: 19.92 kB / 1.055 GB, free: 3.23 MB / 0.8262 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.0002316/0.465, allocations: 192.2 kB / 1.055 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.4651, allocations: 35.53 kB / 1.055 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00478/0.4699, allocations: 1.368 MB / 1.057 GB, free: 1.617 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.264e-05/0.47, allocations: 8 kB / 1.057 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.47, allocations: 0 / 1.057 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.47, allocations: 0 / 1.057 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005618/0.4756, allocations: 1.991 MB / 1.059 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.4757, allocations: 0 / 1.059 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.4761, allocations: 79.83 kB / 1.059 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00325/0.4793, allocations: 0.7078 MB / 1.06 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.889e-05/0.4794, allocations: 7.938 kB / 1.06 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006516/0.486, allocations: 4.671 MB / 1.064 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.486, allocations: 0 / 1.064 GB, free: 9.789 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004613/0.4906, allocations: 1.359 MB / 1.065 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.491, allocations: 168.7 kB / 1.066 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001315/0.4912, allocations: 11.88 kB / 1.066 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000688/0.4919, allocations: 87.86 kB / 1.066 GB, free: 8.117 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.4921, allocations: 23.97 kB / 1.066 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.4921, allocations: 7.984 kB / 1.066 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005288/0.4927, allocations: 307.1 kB / 1.066 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4927, allocations: 0 / 1.066 GB, free: 7.789 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001033/0.4937, allocations: 208 kB / 1.066 GB, free: 7.586 MB / 0.8419 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.0002484/0.494, allocations: 111.2 kB / 1.066 GB, free: 7.469 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004028/0.498, allocations: 1.581 MB / 1.068 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.498, allocations: 4.125 kB / 1.068 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.4994, allocations: 0.626 MB / 1.068 GB, free: 5.191 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008747/0.5002, allocations: 142.9 kB / 1.069 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.5028, allocations: 1.23 MB / 1.07 GB, free: 3.777 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.5035, allocations: 0.9093 MB / 1.071 GB, free: 2.844 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.5036, allocations: 31.42 kB / 1.071 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of SimCode: time 1.152e-06/0.5037, allocations: 0 / 1.071 GB, free: 2.812 MB / 0.8419 GB Notification: Performance of Templates: time 0.4511/0.9548, allocations: 12.5 MB / 1.083 GB, free: 59.84 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches