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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.0008953/0.0008953, allocations: 91.22 kB / 15.36 MB, free: 0.7344 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.006597/0.006597, allocations: 170.9 kB / 16.26 MB, free: 6.68 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.493/1.493, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.759/2.759, allocations: 443.3 MB / 0.7175 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004064/0.0004065, allocations: 11.14 kB / 0.8796 GB, free: 41.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3583, allocations: 155.2 MB / 1.031 GB, free: 4.273 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.006014/0.3644, allocations: 4.051 MB / 1.035 GB, free: 208 kB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005239/0.3697, allocations: 3.183 MB / 1.038 GB, free: 13.01 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.3701, allocations: 15.88 kB / 1.038 GB, free: 12.99 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0008266/0.3709, allocations: 171.1 kB / 1.038 GB, free: 12.82 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001312/0.3723, allocations: 352.1 kB / 1.039 GB, free: 12.48 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008081/0.3731, allocations: 230.2 kB / 1.039 GB, free: 12.26 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001192/0.3743, allocations: 0.7945 MB / 1.04 GB, free: 11.46 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.3759, allocations: 0.8215 MB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000593/0.3765, allocations: 231.1 kB / 1.041 GB, free: 10.38 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00061/0.3771, allocations: 251 kB / 1.041 GB, free: 10.13 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 7.081e-05/0.3772, allocations: 16 kB / 1.041 GB, free: 10.12 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007326/0.378, allocations: 319.4 kB / 1.041 GB, free: 9.805 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0002013/0.3782, allocations: 131.5 kB / 1.041 GB, free: 9.676 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.3785, allocations: 216.7 kB / 1.042 GB, free: 9.457 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.3798, allocations: 0.7593 MB / 1.042 GB, free: 8.695 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3798, allocations: 0 / 1.042 GB, free: 8.695 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3798, allocations: 8 kB / 1.042 GB, free: 8.688 MB / 0.795 GB Notification: Performance of Transformations before backend: time 2.029e-05/0.3798, allocations: 0 / 1.042 GB, free: 8.688 MB / 0.795 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.001496/0.3813, allocations: 0.6858 MB / 1.043 GB, free: 7.953 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3814, allocations: 8.031 kB / 1.043 GB, free: 7.945 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003018/0.3844, allocations: 0.6672 MB / 1.044 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007867/0.3852, allocations: 435.8 kB / 1.044 GB, free: 6.812 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.881e-05/0.3852, allocations: 25.02 kB / 1.044 GB, free: 6.789 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.3854, allocations: 48.06 kB / 1.044 GB, free: 6.742 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.3871, allocations: 0.7826 MB / 1.045 GB, free: 5.93 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.447e-05/0.3871, allocations: 3.938 kB / 1.045 GB, free: 5.926 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.3872, allocations: 12 kB / 1.045 GB, free: 5.914 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.3873, allocations: 44.61 kB / 1.045 GB, free: 5.867 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002199/0.3895, allocations: 0.8687 MB / 1.046 GB, free: 5 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004346/0.3939, allocations: 2.812 MB / 1.049 GB, free: 1.965 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001794/0.3957, allocations: 0.5137 MB / 1.049 GB, free: 1.441 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007342/0.3965, allocations: 260.9 kB / 1.049 GB, free: 1.184 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.3966, allocations: 89.09 kB / 1.049 GB, free: 1.078 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.3967, allocations: 34.5 kB / 1.049 GB, free: 1.035 MB / 0.795 GB Notification: Performance of pre-optimization done (n=16): time 4.178e-06/0.3967, allocations: 0 / 1.049 GB, free: 1.035 MB / 0.795 GB Notification: Performance of matching and sorting (n=24): time 0.01222/0.4089, allocations: 3.118 MB / 1.052 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.409, allocations: 55.41 kB / 1.053 GB, free: 13.82 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000544/0.4095, allocations: 401.5 kB / 1.053 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 6.251e-05/0.4096, allocations: 29.7 kB / 1.053 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001797/0.4098, allocations: 239.8 kB / 1.053 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.678e-05/0.4099, allocations: 86.75 kB / 1.053 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7e-05/0.41, allocations: 29.7 kB / 1.053 GB, free: 13.02 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4101, allocations: 350.8 kB / 1.054 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009764/0.4111, allocations: 359.6 kB / 1.054 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.4121, allocations: 432.3 kB / 1.054 GB, free: 11.86 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.4141, allocations: 0.7737 MB / 1.055 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4141, allocations: 4 kB / 1.055 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005495/0.4196, allocations: 1.515 MB / 1.057 GB, free: 9.527 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.4198, allocations: 148 kB / 1.057 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.4198, allocations: 0 / 1.057 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004096/0.4239, allocations: 0.8246 MB / 1.058 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006926/0.4246, allocations: 131.8 kB / 1.058 GB, free: 8.391 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007244/0.4319, allocations: 4.535 MB / 1.062 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008545/0.4328, allocations: 119.9 kB / 1.062 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.674e-05/0.4329, allocations: 15.98 kB / 1.062 GB, free: 3.457 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.4329, allocations: 4 kB / 1.062 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004559/0.4375, allocations: 1.242 MB / 1.063 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4375, allocations: 4 kB / 1.063 GB, free: 2.203 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00267/0.4402, allocations: 0.5432 MB / 1.064 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007433/0.4409, allocations: 139.8 kB / 1.064 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004888/0.4458, allocations: 2.685 MB / 1.067 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008632/0.4467, allocations: 115.9 kB / 1.067 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.026e-05/0.4468, allocations: 12 kB / 1.067 GB, free: 14.57 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.0005054/0.4473, allocations: 326.4 kB / 1.067 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001292/0.4475, allocations: 31.62 kB / 1.067 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004974/0.4525, allocations: 1.399 MB / 1.069 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.4525, allocations: 4 kB / 1.069 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4525, allocations: 0 / 1.069 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.156e-05/0.4525, allocations: 8.062 kB / 1.069 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005864/0.4584, allocations: 2.04 MB / 1.071 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/0.4585, allocations: 4 kB / 1.071 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.4589, allocations: 79.91 kB / 1.071 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003521/0.4625, allocations: 0.7662 MB / 1.071 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-05/0.4625, allocations: 7.984 kB / 1.071 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006346/0.4689, allocations: 4.364 MB / 1.076 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.4689, allocations: 11.97 kB / 1.076 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006571/0.4755, allocations: 1.406 MB / 1.077 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004804/0.476, allocations: 168.6 kB / 1.077 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.4762, allocations: 11.94 kB / 1.077 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009614/0.4772, allocations: 91.86 kB / 1.077 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.4774, allocations: 27.89 kB / 1.077 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.606e-05/0.4775, allocations: 12 kB / 1.077 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0006706/0.4782, allocations: 299.1 kB / 1.078 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.51e-07/0.4782, allocations: 4 kB / 1.078 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001526/0.4797, allocations: 196 kB / 1.078 GB, free: 2.914 MB / 0.8262 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.0002726/0.48, allocations: 113.2 kB / 1.078 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.007039/0.4871, allocations: 1.735 MB / 1.08 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.4871, allocations: 0 / 1.08 GB, free: 1.023 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.001898/0.489, allocations: 0.6379 MB / 1.08 GB, free: 368 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.4903, allocations: 113.5 kB / 1.08 GB, free: 260 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/0.4937, allocations: 1.242 MB / 1.082 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008643/0.4946, allocations: 0.9132 MB / 1.082 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0008202/0.4954, allocations: 147.2 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/0.4956, allocations: 35.42 kB / 1.083 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of SimCode: time 1.012e-06/0.4956, allocations: 0 / 1.083 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of Templates: time 0.02922/0.5248, allocations: 11.66 MB / 1.094 GB, free: 2.266 MB / 0.8419 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