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.001119/0.001119, allocations: 99.03 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 182.7 kB / 16.92 MB, free: 6.918 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.436/1.436, allocations: 223.3 MB / 241 MB, free: 5.242 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.517/2.517, allocations: 390.9 MB / 0.667 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003184, allocations: 8 kB / 0.8166 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6711/0.6715, allocations: 142.4 MB / 0.9557 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.003009/0.6745, allocations: 2.59 MB / 0.9582 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002333/0.6769, allocations: 1.786 MB / 0.96 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.677, allocations: 1.781 kB / 0.96 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001745/0.6772, allocations: 31.53 kB / 0.96 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004655/0.6777, allocations: 182.6 kB / 0.9602 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004575/0.6782, allocations: 212.5 kB / 0.9604 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003736/0.6785, allocations: 430.2 kB / 0.9608 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006649/0.6792, allocations: 398 kB / 0.9612 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.6794, allocations: 95.69 kB / 0.9613 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.6797, allocations: 146.5 kB / 0.9614 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.6797, allocations: 10.94 kB / 0.9614 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005073/0.6802, allocations: 331.4 kB / 0.9617 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.79e-05/0.6803, allocations: 72.14 kB / 0.9618 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.6804, allocations: 130.7 kB / 0.9619 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003615/0.6808, allocations: 326 kB / 0.9622 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.6808, allocations: 0.9375 kB / 0.9622 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.684e-06/0.6808, allocations: 4 kB / 0.9622 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.002e-06/0.6808, allocations: 0 / 0.9622 GB, free: 2.84 MB / 0.7169 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.0007349/0.6816, allocations: 0.509 MB / 0.9627 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.6816, allocations: 9.594 kB / 0.9627 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009252/0.6826, allocations: 120 kB / 0.9629 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002418/0.6828, allocations: 260.3 kB / 0.9631 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.6828, allocations: 12.09 kB / 0.9631 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.948e-05/0.6829, allocations: 16.38 kB / 0.9631 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006197/0.6835, allocations: 402.2 kB / 0.9635 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.6835, allocations: 0 / 0.9635 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.258e-05/0.6836, allocations: 7.406 kB / 0.9635 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-05/0.6836, allocations: 24.16 kB / 0.9635 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006479/0.6843, allocations: 354.7 kB / 0.9639 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001539/0.6858, allocations: 1.748 MB / 0.9656 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007134/0.6866, allocations: 336.5 kB / 0.9659 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.6869, allocations: 166.7 kB / 0.9661 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001481/0.687, allocations: 90.53 kB / 0.9662 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.687, allocations: 36.81 kB / 0.9662 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.6871, allocations: 0 / 0.9662 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of matching and sorting (n=21): time 0.001489/0.6886, allocations: 0.6001 MB / 0.9668 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.6886, allocations: 91.03 kB / 0.9669 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002719/0.6889, allocations: 216.2 kB / 0.9671 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.676e-05/0.6889, allocations: 30.67 kB / 0.9671 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.689, allocations: 155.5 kB / 0.9672 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.519e-05/0.6891, allocations: 80.08 kB / 0.9673 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.6892, allocations: 29.7 kB / 0.9674 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.6893, allocations: 327.7 kB / 0.9677 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003202/0.6896, allocations: 141.1 kB / 0.9678 GB, free: 14.18 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003786/0.69, allocations: 223 kB / 0.968 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006986/0.6907, allocations: 388.4 kB / 0.9684 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.6908, allocations: 0.9375 kB / 0.9684 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001005/0.6918, allocations: 445.6 kB / 0.9688 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.6919, allocations: 176.3 kB / 0.969 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.6919, allocations: 3.031 kB / 0.969 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.6922, allocations: 42.41 kB / 0.969 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003596/0.6925, allocations: 73.03 kB / 0.9691 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.694, allocations: 1.494 MB / 0.9705 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003411/0.6944, allocations: 47.09 kB / 0.9706 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.6944, allocations: 13.64 kB / 0.9706 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.6944, allocations: 4 kB / 0.9706 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008781/0.6953, allocations: 386 kB / 0.971 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.6953, allocations: 6.094 kB / 0.971 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001513/0.6955, allocations: 41.12 kB / 0.971 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003005/0.6958, allocations: 76.23 kB / 0.9711 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/0.6971, allocations: 1.482 MB / 0.9725 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.6974, allocations: 40.5 kB / 0.9726 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.6974, allocations: 9.969 kB / 0.9726 GB, free: 10.04 MB / 0.7325 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.0002256/0.6976, allocations: 237.4 kB / 0.9728 GB, free: 9.82 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.064e-05/0.6977, allocations: 21.7 kB / 0.9728 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000735/0.6984, allocations: 366.9 kB / 0.9732 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.6985, allocations: 2.25 kB / 0.9732 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.6985, allocations: 1.219 kB / 0.9732 GB, free: 9.594 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.6985, allocations: 9.094 kB / 0.9732 GB, free: 9.586 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.7001, allocations: 0.9784 MB / 0.9742 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.286e-06/0.7001, allocations: 2.5 kB / 0.9742 GB, free: 8.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002398/0.7003, allocations: 53.61 kB / 0.9742 GB, free: 8.801 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001369/0.7005, allocations: 34.73 kB / 0.9742 GB, free: 8.781 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.405e-05/0.7005, allocations: 12.06 kB / 0.9743 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.7017, allocations: 1.402 MB / 0.9756 GB, free: 7.363 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.7018, allocations: 5.438 kB / 0.9756 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008099/0.7026, allocations: 0.5409 MB / 0.9762 GB, free: 6.945 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.7027, allocations: 130.4 kB / 0.9763 GB, free: 6.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.112e-05/0.7028, allocations: 15.7 kB / 0.9763 GB, free: 6.805 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002821/0.7031, allocations: 29.91 kB / 0.9763 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.635e-05/0.7032, allocations: 17.95 kB / 0.9763 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.7032, allocations: 14.22 kB / 0.9764 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002848/0.7035, allocations: 163 kB / 0.9765 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7035, allocations: 0 / 0.9765 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000681/0.7042, allocations: 106.7 kB / 0.9766 GB, free: 6.645 MB / 0.7325 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.0001706/0.7044, allocations: 119.1 kB / 0.9767 GB, free: 6.539 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001481/0.7058, allocations: 0.76 MB / 0.9775 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.7059, allocations: 256 / 0.9775 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004365/0.7063, allocations: 277.9 kB / 0.9777 GB, free: 5.863 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005213/0.7068, allocations: 39.3 kB / 0.9778 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.708, allocations: 0.6967 MB / 0.9785 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003785/0.7084, allocations: 0.7655 MB / 0.9792 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.7085, allocations: 26.8 kB / 0.9792 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.7085, allocations: 0 / 0.9792 GB, free: 4.547 MB / 0.7325 GB Notification: Performance of Templates: time 0.008031/0.7166, allocations: 4.264 MB / 0.9834 GB, free: 1.773 MB / 0.7325 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,grid.P.real,grid.P.apparent Variables in the result:grid.P.apparent,grid.P.real,time