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.0009613/0.0009614, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.0081/0.0081, allocations: 170.5 kB / 16.26 MB, free: 6.613 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.732/2.732, allocations: 462.6 MB / 0.7364 GB, free: 268 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003327/0.0003327, allocations: 13.59 kB / 0.9028 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3215, allocations: 159.6 MB / 1.059 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005447/0.327, allocations: 4.046 MB / 1.063 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004817/0.3319, allocations: 3.221 MB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003649/0.3323, allocations: 15.88 kB / 1.066 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0006865/0.333, allocations: 163.1 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.334, allocations: 358.4 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006635/0.3347, allocations: 242.9 kB / 1.067 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009562/0.3357, allocations: 0.7868 MB / 1.067 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.337, allocations: 0.8214 MB / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005029/0.3375, allocations: 223.1 kB / 1.068 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004758/0.338, allocations: 255 kB / 1.069 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.3381, allocations: 12 kB / 1.069 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006046/0.3387, allocations: 335.4 kB / 1.069 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.3389, allocations: 135.6 kB / 1.069 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.3392, allocations: 224.5 kB / 1.069 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009373/0.3401, allocations: 0.7595 MB / 1.07 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3401, allocations: 0 / 1.07 GB, free: 9.848 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3401, allocations: 4 kB / 1.07 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.014e-05/0.3401, allocations: 0 / 1.07 GB, free: 9.844 MB / 0.8262 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.001269/0.3414, allocations: 0.6897 MB / 1.071 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.3415, allocations: 8.031 kB / 1.071 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002989/0.3445, allocations: 0.6945 MB / 1.071 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007068/0.3452, allocations: 443.8 kB / 1.072 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.3452, allocations: 21.03 kB / 1.072 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.71e-05/0.3453, allocations: 32.12 kB / 1.072 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001651/0.347, allocations: 0.7981 MB / 1.073 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.347, allocations: 4 kB / 1.073 GB, free: 7.043 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-05/0.3471, allocations: 12 kB / 1.073 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/0.3472, allocations: 44.61 kB / 1.073 GB, free: 6.988 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/0.3493, allocations: 0.892 MB / 1.073 GB, free: 6.098 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003904/0.3532, allocations: 2.831 MB / 1.076 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.355, allocations: 0.5331 MB / 1.077 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007628/0.3558, allocations: 267.1 kB / 1.077 GB, free: 2.234 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.3559, allocations: 85.11 kB / 1.077 GB, free: 2.133 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.356, allocations: 38.55 kB / 1.077 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=16): time 1.653e-06/0.356, allocations: 0 / 1.077 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of matching and sorting (n=24): time 0.01279/0.3688, allocations: 3.215 MB / 1.08 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.3689, allocations: 55.41 kB / 1.08 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005732/0.3694, allocations: 397.5 kB / 1.081 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.3695, allocations: 33.7 kB / 1.081 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.3697, allocations: 235.8 kB / 1.081 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.3698, allocations: 82.75 kB / 1.081 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.051e-05/0.3699, allocations: 33.7 kB / 1.081 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3701, allocations: 346.8 kB / 1.081 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009947/0.3711, allocations: 367.7 kB / 1.082 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3721, allocations: 445.5 kB / 1.082 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001998/0.3741, allocations: 0.79 MB / 1.083 GB, free: 12 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3741, allocations: 0 / 1.083 GB, free: 12 MB / 0.8419 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005322/0.3795, allocations: 1.55 MB / 1.084 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.3796, allocations: 154 kB / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.3796, allocations: 0 / 1.085 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00386/0.3835, allocations: 0.8208 MB / 1.085 GB, free: 9.426 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006757/0.3841, allocations: 135.8 kB / 1.086 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006469/0.3906, allocations: 4.543 MB / 1.09 GB, free: 4.48 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008322/0.3915, allocations: 115.8 kB / 1.09 GB, free: 4.367 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/0.3916, allocations: 16 kB / 1.09 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.3916, allocations: 4 kB / 1.09 GB, free: 4.348 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004367/0.3959, allocations: 1.277 MB / 1.091 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.396, allocations: 0 / 1.091 GB, free: 3.066 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002513/0.3985, allocations: 0.5392 MB / 1.092 GB, free: 2.523 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006895/0.3992, allocations: 151.8 kB / 1.092 GB, free: 2.375 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004424/0.4036, allocations: 2.701 MB / 1.095 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007889/0.4044, allocations: 111.9 kB / 1.095 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.784e-05/0.4045, allocations: 16 kB / 1.095 GB, free: 15.42 MB / 0.8575 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.0003784/0.4049, allocations: 318.2 kB / 1.095 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.405, allocations: 35.53 kB / 1.095 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004808/0.4098, allocations: 1.408 MB / 1.097 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.4098, allocations: 8 kB / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.4098, allocations: 0 / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4098, allocations: 7.922 kB / 1.097 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005498/0.4153, allocations: 2.03 MB / 1.099 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.4154, allocations: 4.094 kB / 1.099 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003909/0.4158, allocations: 87.83 kB / 1.099 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003385/0.4192, allocations: 0.7622 MB / 1.099 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.513e-05/0.4192, allocations: 8 kB / 1.099 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005797/0.425, allocations: 4.364 MB / 1.104 GB, free: 6.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.425, allocations: 0 / 1.104 GB, free: 6.02 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004479/0.4295, allocations: 1.414 MB / 1.105 GB, free: 4.574 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00025/0.4298, allocations: 164.6 kB / 1.105 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.6e-05/0.4299, allocations: 11.94 kB / 1.105 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006626/0.4306, allocations: 95.86 kB / 1.105 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/0.4307, allocations: 23.95 kB / 1.105 GB, free: 4.266 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.938e-05/0.4307, allocations: 8 kB / 1.105 GB, free: 4.258 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004543/0.4312, allocations: 311.1 kB / 1.106 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of sort global known variables: time 4.61e-07/0.4312, allocations: 3.938 kB / 1.106 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009203/0.4321, allocations: 204 kB / 1.106 GB, free: 3.75 MB / 0.8575 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.0001962/0.4323, allocations: 107.2 kB / 1.106 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.00476/0.4371, allocations: 1.761 MB / 1.108 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4371, allocations: 0 / 1.108 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/0.4384, allocations: 0.6341 MB / 1.108 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008189/0.4392, allocations: 131.3 kB / 1.108 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.4414, allocations: 1.234 MB / 1.11 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005559/0.4419, allocations: 0.9171 MB / 1.11 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0006268/0.4426, allocations: 155.2 kB / 1.111 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.4427, allocations: 35.41 kB / 1.111 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of SimCode: time 2.124e-06/0.4427, allocations: 0 / 1.111 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of Templates: time 0.01988/0.4626, allocations: 12.06 MB / 1.122 GB, free: 2.656 MB / 0.8731 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/jenkins/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