Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.Examples.GeneratorLoadGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent",fileNamePrefix="Buildings_latest_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_latest_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.001282/0.001282, allocations: 102 kB / 16.27 MB, free: 5.906 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.001287/0.001287, allocations: 191.9 kB / 17.2 MB, free: 5.539 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.345/1.345, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.673/2.673, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 63.47 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7706/0.7724, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004127/0.7766, allocations: 2.898 MB / 1.086 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003154/0.7798, allocations: 1.81 MB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001548/0.7799, allocations: 4.25 kB / 1.088 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007797/0.7808, allocations: 230.5 kB / 1.088 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005137/0.7813, allocations: 204 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.7819, allocations: 233.2 kB / 1.088 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003865/0.7823, allocations: 313.5 kB / 1.088 GB, free: 13.96 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000339/0.7826, allocations: 176.4 kB / 1.089 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.7828, allocations: 120.7 kB / 1.089 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.7831, allocations: 152 kB / 1.089 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.7832, allocations: 20.41 kB / 1.089 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005096/0.7837, allocations: 285.4 kB / 1.089 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.762e-05/0.7838, allocations: 83.06 kB / 1.089 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.7839, allocations: 116.2 kB / 1.089 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005584/0.7845, allocations: 432.7 kB / 1.09 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.7845, allocations: 4.75 kB / 1.09 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7845, allocations: 0 / 1.09 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.7845, allocations: 1.125 kB / 1.09 GB, free: 13.42 MB / 0.8419 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.0009346/0.7855, allocations: 0.5411 MB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.7855, allocations: 10.33 kB / 1.09 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009071/0.7864, allocations: 112.5 kB / 1.09 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003461/0.7868, allocations: 260.9 kB / 1.091 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.7868, allocations: 12.59 kB / 1.091 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.633e-05/0.7869, allocations: 24.72 kB / 1.091 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007007/0.7876, allocations: 387.8 kB / 1.091 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.7876, allocations: 1.219 kB / 1.091 GB, free: 12.46 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.7877, allocations: 14.61 kB / 1.091 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.15e-05/0.7877, allocations: 20.91 kB / 1.091 GB, free: 12.45 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007073/0.7884, allocations: 344.9 kB / 1.091 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.7905, allocations: 1.739 MB / 1.093 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007372/0.7913, allocations: 336 kB / 1.093 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.7916, allocations: 145.9 kB / 1.094 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001475/0.7917, allocations: 86.88 kB / 1.094 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.7918, allocations: 40.5 kB / 1.094 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.663e-06/0.7918, allocations: 4.594 kB / 1.094 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001433/0.7932, allocations: 0.595 MB / 1.094 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.7933, allocations: 81.05 kB / 1.094 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.7936, allocations: 209.7 kB / 1.095 GB, free: 10 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.7936, allocations: 31.02 kB / 1.095 GB, free: 9.965 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.7937, allocations: 164.1 kB / 1.095 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.594e-05/0.7938, allocations: 71.7 kB / 1.095 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.7939, allocations: 63.66 kB / 1.095 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.7941, allocations: 330.1 kB / 1.095 GB, free: 9.406 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.7944, allocations: 146.6 kB / 1.095 GB, free: 9.352 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/0.7948, allocations: 217.2 kB / 1.096 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006488/0.7955, allocations: 378.8 kB / 1.096 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.7955, allocations: 1.312 kB / 1.096 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009019/0.7964, allocations: 434 kB / 1.096 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.7964, allocations: 7.547 kB / 1.096 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.7964, allocations: 2.094 kB / 1.096 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002226/0.7967, allocations: 44.77 kB / 1.096 GB, free: 8.793 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.797, allocations: 75.75 kB / 1.096 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.7986, allocations: 1.615 MB / 1.098 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.799, allocations: 38.44 kB / 1.098 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.74e-05/0.799, allocations: 11.02 kB / 1.098 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003965/0.7994, allocations: 242.9 kB / 1.098 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003451/0.7997, allocations: 210.5 kB / 1.099 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005976/0.8004, allocations: 355.4 kB / 1.099 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.425e-06/0.8004, allocations: 1.562 kB / 1.099 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0008506/0.8012, allocations: 424 kB / 1.099 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 9.649e-06/0.8012, allocations: 9.312 kB / 1.099 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.8013, allocations: 4.297 kB / 1.099 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.8014, allocations: 44.47 kB / 1.099 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.8017, allocations: 67.47 kB / 1.099 GB, free: 6.551 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.8032, allocations: 1.608 MB / 1.101 GB, free: 5.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/0.8035, allocations: 39.8 kB / 1.101 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.8036, allocations: 15.41 kB / 1.101 GB, free: 5.02 MB / 0.8419 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.0001661/0.8037, allocations: 196.2 kB / 1.101 GB, free: 4.828 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.8038, allocations: 22.3 kB / 1.101 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000732/0.8045, allocations: 365 kB / 1.102 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.8046, allocations: 3.531 kB / 1.102 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.8046, allocations: 1.156 kB / 1.102 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.8046, allocations: 2.172 kB / 1.102 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.8061, allocations: 0.957 MB / 1.102 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.8061, allocations: 1.859 kB / 1.102 GB, free: 4.035 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.8064, allocations: 55.5 kB / 1.103 GB, free: 4.027 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001253/0.8065, allocations: 51.08 kB / 1.103 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.8065, allocations: 4.078 kB / 1.103 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.8079, allocations: 1.515 MB / 1.104 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.8079, allocations: 2.25 kB / 1.104 GB, free: 2.535 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007597/0.8087, allocations: 0.5303 MB / 1.105 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001333/0.8088, allocations: 125.2 kB / 1.105 GB, free: 2.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.211e-05/0.8088, allocations: 12.16 kB / 1.105 GB, free: 2.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002637/0.8091, allocations: 28.97 kB / 1.105 GB, free: 2.039 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.385e-05/0.8092, allocations: 22.88 kB / 1.105 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.8092, allocations: 7.75 kB / 1.105 GB, free: 2.031 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002085/0.8094, allocations: 159.1 kB / 1.105 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8094, allocations: 0 / 1.105 GB, free: 1.934 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006376/0.8101, allocations: 111.6 kB / 1.105 GB, free: 1.918 MB / 0.8419 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.0001729/0.8103, allocations: 116.9 kB / 1.105 GB, free: 1.816 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001491/0.8118, allocations: 0.7665 MB / 1.106 GB, free: 1.414 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8118, allocations: 0 / 1.106 GB, free: 1.414 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004241/0.8122, allocations: 269.5 kB / 1.106 GB, free: 1.254 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004628/0.8127, allocations: 36.67 kB / 1.106 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.8138, allocations: 0.5959 MB / 1.107 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.8142, allocations: 0.7713 MB / 1.108 GB, free: 152 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000107/0.8143, allocations: 28.88 kB / 1.108 GB, free: 140 kB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.8143, allocations: 0 / 1.108 GB, free: 140 kB / 0.8419 GB Notification: Performance of Templates: time 0.007712/0.822, allocations: 4.296 MB / 1.112 GB, free: 15.82 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Examples_GeneratorLoadGrid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches