Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005334/0.005334, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001171/0.001171, allocations: 194.9 kB / 16.67 MB, free: 5.969 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.517/1.517, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.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.942/2.942, allocations: 437 MB / 0.7105 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 63.91 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3891, allocations: 151.6 MB / 1.167 GB, free: 6.824 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005269/0.3944, allocations: 2.888 MB / 1.169 GB, free: 3.914 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.003712/0.3981, allocations: 1.812 MB / 1.171 GB, free: 2.09 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003147/0.3985, allocations: 4 kB / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009708/0.3995, allocations: 239 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0006927/0.4002, allocations: 199.1 kB / 1.172 GB, free: 1.656 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007232/0.401, allocations: 231.4 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000597/0.4016, allocations: 315 kB / 1.172 GB, free: 1.121 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004598/0.4021, allocations: 174.4 kB / 1.172 GB, free: 0.9453 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003634/0.4024, allocations: 127.5 kB / 1.172 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004311/0.4029, allocations: 151.5 kB / 1.173 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 6.118e-05/0.4029, allocations: 20 kB / 1.173 GB, free: 0.6523 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.4035, allocations: 283.5 kB / 1.173 GB, free: 384 kB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001185/0.4037, allocations: 83.78 kB / 1.173 GB, free: 300 kB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.4038, allocations: 115.4 kB / 1.173 GB, free: 184 kB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0008304/0.4047, allocations: 442.4 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4047, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4047, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.4047, allocations: 0 / 1.173 GB, free: 15.75 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001086/0.4058, allocations: 0.553 MB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.4058, allocations: 12.02 kB / 1.174 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.4069, allocations: 124.6 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000404/0.4073, allocations: 266.5 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.4073, allocations: 8.75 kB / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.4074, allocations: 28.3 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007079/0.4081, allocations: 390.5 kB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.4081, allocations: 0 / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.4082, allocations: 8 kB / 1.175 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.766e-05/0.4082, allocations: 24.31 kB / 1.175 GB, free: 14.23 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007201/0.409, allocations: 340.6 kB / 1.175 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.4111, allocations: 1.74 MB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007251/0.4119, allocations: 329.1 kB / 1.177 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.4122, allocations: 153.6 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001814/0.4124, allocations: 89.09 kB / 1.177 GB, free: 11.42 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.234e-05/0.4124, allocations: 34.56 kB / 1.177 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=20): time 1.934e-06/0.4124, allocations: 0 / 1.177 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of matching and sorting (n=21): time 0.001396/0.4138, allocations: 0.5963 MB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.4139, allocations: 93.03 kB / 1.178 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.4142, allocations: 211.7 kB / 1.178 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.4142, allocations: 29.7 kB / 1.178 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.4143, allocations: 160.2 kB / 1.178 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.086e-05/0.4144, allocations: 83.31 kB / 1.179 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.4146, allocations: 53.97 kB / 1.179 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.4147, allocations: 334.8 kB / 1.179 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.415, allocations: 137.9 kB / 1.179 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.4154, allocations: 219.3 kB / 1.179 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000617/0.416, allocations: 380 kB / 1.18 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.416, allocations: 0 / 1.18 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0008855/0.4169, allocations: 440.4 kB / 1.18 GB, free: 8.527 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4169, allocations: 9.875 kB / 1.18 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.4169, allocations: 4 kB / 1.18 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002547/0.4172, allocations: 44.86 kB / 1.18 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.4175, allocations: 71.88 kB / 1.18 GB, free: 8.398 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001622/0.4192, allocations: 1.615 MB / 1.182 GB, free: 6.637 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003165/0.4195, allocations: 47.84 kB / 1.182 GB, free: 6.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.4195, allocations: 12 kB / 1.182 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003594/0.4199, allocations: 244 kB / 1.182 GB, free: 6.336 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003187/0.4202, allocations: 211 kB / 1.182 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005616/0.4208, allocations: 353.1 kB / 1.183 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.625e-06/0.4208, allocations: 0 / 1.183 GB, free: 5.707 MB / 0.9356 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008682/0.4217, allocations: 425.9 kB / 1.183 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.4217, allocations: 11.98 kB / 1.183 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.4217, allocations: 0 / 1.183 GB, free: 5.27 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001394/0.4219, allocations: 40.83 kB / 1.183 GB, free: 5.227 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.4222, allocations: 76.12 kB / 1.183 GB, free: 5.152 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.4236, allocations: 1.607 MB / 1.185 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.4239, allocations: 35.86 kB / 1.185 GB, free: 3.363 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.424, allocations: 16 kB / 1.185 GB, free: 3.348 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001566/0.4241, allocations: 192.2 kB / 1.185 GB, free: 3.152 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.4242, allocations: 23.8 kB / 1.185 GB, free: 3.129 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006908/0.4249, allocations: 366.3 kB / 1.185 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.4249, allocations: 0 / 1.185 GB, free: 2.762 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.4249, allocations: 4.062 kB / 1.185 GB, free: 2.758 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.4249, allocations: 4 kB / 1.185 GB, free: 2.754 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001466/0.4264, allocations: 0.9583 MB / 1.186 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4264, allocations: 0 / 1.186 GB, free: 1.719 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.4266, allocations: 59.83 kB / 1.186 GB, free: 1.66 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001238/0.4268, allocations: 41.05 kB / 1.186 GB, free: 1.617 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.4268, allocations: 4 kB / 1.186 GB, free: 1.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001287/0.4281, allocations: 1.516 MB / 1.188 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.4281, allocations: 0 / 1.188 GB, free: 15.95 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007221/0.4289, allocations: 0.5403 MB / 1.188 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001365/0.429, allocations: 124.9 kB / 1.188 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.241e-05/0.429, allocations: 7.938 kB / 1.188 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.4293, allocations: 27.97 kB / 1.188 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.531e-05/0.4294, allocations: 15.98 kB / 1.188 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.4294, allocations: 11.98 kB / 1.189 GB, free: 15.17 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0002005/0.4296, allocations: 166.8 kB / 1.189 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4296, allocations: 0 / 1.189 GB, free: 15.01 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006351/0.4303, allocations: 111.9 kB / 1.189 GB, free: 14.9 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,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.0001929/0.4305, allocations: 115.1 kB / 1.189 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001473/0.432, allocations: 0.7551 MB / 1.19 GB, free: 14 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.432, allocations: 0 / 1.19 GB, free: 14 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004119/0.4324, allocations: 271.5 kB / 1.19 GB, free: 13.72 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004774/0.4329, allocations: 40.09 kB / 1.19 GB, free: 13.68 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.434, allocations: 0.5611 MB / 1.19 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.4344, allocations: 0.7716 MB / 1.191 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000272/0.4347, allocations: 93.86 kB / 1.191 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.4348, allocations: 31.42 kB / 1.191 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of SimCode: time 3.5e-07/0.4348, allocations: 0 / 1.191 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of Templates: time 0.0079/0.4427, allocations: 3.465 MB / 1.195 GB, free: 8.695 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches