Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.008106/0.008106, allocations: 103.3 kB / 15.7 MB, free: 6.359 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.001821/0.001821, allocations: 191 kB / 16.64 MB, free: 6.297 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.478/1.478, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.573/2.573, allocations: 390.3 MB / 0.6648 GB, free: 152 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 66.98 kB / 0.9509 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3834, allocations: 140.4 MB / 1.088 GB, free: 1.445 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.005258/0.3887, allocations: 2.889 MB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002881/0.3916, allocations: 1.655 MB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.3918, allocations: 4 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008473/0.3927, allocations: 231 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004539/0.3932, allocations: 179.2 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006034/0.3938, allocations: 231.4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003685/0.3942, allocations: 311 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.3946, allocations: 183.5 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.3948, allocations: 123.5 kB / 1.094 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.3951, allocations: 147.4 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.3951, allocations: 20 kB / 1.094 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004167/0.3955, allocations: 255.5 kB / 1.094 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.3956, allocations: 83.78 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.3958, allocations: 115.4 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.3963, allocations: 422.7 kB / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3963, allocations: 0 / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.144e-06/0.3963, allocations: 0 / 1.095 GB, free: 10.61 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.704e-06/0.3963, allocations: 4 kB / 1.095 GB, free: 10.61 MB / 0.8575 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.0009315/0.3972, allocations: 0.5359 MB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.3973, allocations: 8.031 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007277/0.398, allocations: 88.56 kB / 1.095 GB, free: 9.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.3984, allocations: 275.7 kB / 1.095 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.3984, allocations: 8.75 kB / 1.095 GB, free: 9.613 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.998e-05/0.3984, allocations: 20.36 kB / 1.096 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006156/0.3991, allocations: 386.3 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.3991, allocations: 0 / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.3991, allocations: 8 kB / 1.096 GB, free: 9.172 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.453e-05/0.3992, allocations: 24.31 kB / 1.096 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.3997, allocations: 324.6 kB / 1.096 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001734/0.4015, allocations: 1.728 MB / 1.098 GB, free: 6.965 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007018/0.4022, allocations: 333.1 kB / 1.098 GB, free: 6.621 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.4025, allocations: 157.5 kB / 1.098 GB, free: 6.461 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001401/0.4027, allocations: 85.11 kB / 1.098 GB, free: 6.359 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.4027, allocations: 34.56 kB / 1.098 GB, free: 6.316 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=20): time 1.392e-06/0.4027, allocations: 0 / 1.098 GB, free: 6.316 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21): time 0.001387/0.4041, allocations: 0.5973 MB / 1.099 GB, free: 5.691 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/0.4041, allocations: 81.05 kB / 1.099 GB, free: 5.594 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.4043, allocations: 203.7 kB / 1.099 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.4044, allocations: 33.7 kB / 1.099 GB, free: 5.348 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.516e-05/0.4045, allocations: 160 kB / 1.1 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.109e-05/0.4046, allocations: 79 kB / 1.1 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.476e-05/0.4047, allocations: 61.88 kB / 1.1 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.4048, allocations: 326.8 kB / 1.1 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.405, allocations: 133.9 kB / 1.1 GB, free: 4.582 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.4053, allocations: 215.3 kB / 1.1 GB, free: 4.336 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005522/0.4059, allocations: 369.9 kB / 1.101 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-06/0.4059, allocations: 4 kB / 1.101 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007573/0.4067, allocations: 414.2 kB / 1.101 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4067, allocations: 12.03 kB / 1.101 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.4067, allocations: 4 kB / 1.101 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002422/0.407, allocations: 48.69 kB / 1.101 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/0.4073, allocations: 71.88 kB / 1.101 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001414/0.4087, allocations: 1.607 MB / 1.103 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000232/0.4089, allocations: 35.81 kB / 1.103 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.289e-05/0.409, allocations: 8 kB / 1.103 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003247/0.4093, allocations: 240.7 kB / 1.103 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002792/0.4096, allocations: 203.8 kB / 1.103 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005167/0.4101, allocations: 342.9 kB / 1.104 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.208e-06/0.4101, allocations: 4 kB / 1.104 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0007447/0.4109, allocations: 411.4 kB / 1.104 GB, free: 332 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.082e-05/0.4109, allocations: 4 kB / 1.104 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.4109, allocations: 4 kB / 1.104 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.4111, allocations: 49.38 kB / 1.104 GB, free: 272 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002626/0.4113, allocations: 67.89 kB / 1.104 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.4126, allocations: 1.611 MB / 1.106 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001986/0.4129, allocations: 27.83 kB / 1.106 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.172e-05/0.4129, allocations: 15.98 kB / 1.106 GB, free: 14.4 MB / 0.8731 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.0001399/0.413, allocations: 196.1 kB / 1.106 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.691e-05/0.4131, allocations: 23.75 kB / 1.106 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006785/0.4138, allocations: 354.4 kB / 1.106 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4138, allocations: 4 kB / 1.106 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.4138, allocations: 0 / 1.106 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.4138, allocations: 3.984 kB / 1.106 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.4152, allocations: 0.956 MB / 1.107 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4152, allocations: 4 kB / 1.107 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002302/0.4154, allocations: 51.83 kB / 1.107 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.4156, allocations: 45.05 kB / 1.107 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.4156, allocations: 4 kB / 1.107 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001111/0.4167, allocations: 1.524 MB / 1.109 GB, free: 11.01 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.4167, allocations: 4 kB / 1.109 GB, free: 11 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006779/0.4174, allocations: 0.533 MB / 1.109 GB, free: 10.43 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.4176, allocations: 124.7 kB / 1.109 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.4176, allocations: 11.94 kB / 1.109 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.4178, allocations: 27.97 kB / 1.109 GB, free: 10.25 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.688e-05/0.4179, allocations: 11.98 kB / 1.109 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.841e-05/0.4179, allocations: 12 kB / 1.109 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001544/0.4181, allocations: 158.9 kB / 1.11 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4181, allocations: 0 / 1.11 GB, free: 10.07 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000634/0.4187, allocations: 104 kB / 1.11 GB, free: 9.973 MB / 0.8731 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.0001642/0.4189, allocations: 111.2 kB / 1.11 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001308/0.4202, allocations: 0.744 MB / 1.111 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4202, allocations: 0 / 1.111 GB, free: 9.086 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000392/0.4206, allocations: 270.3 kB / 1.111 GB, free: 8.809 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004655/0.4211, allocations: 35.48 kB / 1.111 GB, free: 8.777 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.4221, allocations: 0.5514 MB / 1.111 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.4225, allocations: 0.7794 MB / 1.112 GB, free: 7.375 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002269/0.4228, allocations: 89.94 kB / 1.112 GB, free: 7.285 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.365e-05/0.4228, allocations: 23.42 kB / 1.112 GB, free: 7.262 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.4228, allocations: 0 / 1.112 GB, free: 7.262 MB / 0.8731 GB Notification: Performance of Templates: time 0.007017/0.4299, allocations: 3.279 MB / 1.115 GB, free: 3.992 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches