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.001612/0.001612, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001672/0.001672, allocations: 192.1 kB / 16.25 MB, free: 6.637 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.52/1.52, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.071/3.071, allocations: 482.3 MB / 0.7542 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 73.27 kB / 0.9232 GB, free: 29.58 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3214, allocations: 162.2 MB / 1.082 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Examples.GeneratorLoadGrid): time 0.004657/0.3261, allocations: 2.942 MB / 1.084 GB, free: 10.78 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002916/0.329, allocations: 1.784 MB / 1.086 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.3292, allocations: 7.938 kB / 1.086 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007852/0.33, allocations: 227.2 kB / 1.086 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0004737/0.3305, allocations: 179.3 kB / 1.087 GB, free: 8.582 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.331, allocations: 214.7 kB / 1.087 GB, free: 8.375 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003864/0.3314, allocations: 307.1 kB / 1.087 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004085/0.3318, allocations: 210 kB / 1.087 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.332, allocations: 123.6 kB / 1.087 GB, free: 7.742 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000266/0.3323, allocations: 155.4 kB / 1.088 GB, free: 7.59 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.3324, allocations: 20 kB / 1.088 GB, free: 7.57 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004457/0.3328, allocations: 283.4 kB / 1.088 GB, free: 7.293 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.3329, allocations: 87.78 kB / 1.088 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.3331, allocations: 111.4 kB / 1.088 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005588/0.3336, allocations: 451 kB / 1.088 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3336, allocations: 0 / 1.088 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3337, allocations: 3.938 kB / 1.088 GB, free: 6.652 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.752e-06/0.3337, allocations: 4 kB / 1.089 GB, free: 6.648 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.001028/0.3347, allocations: 0.5458 MB / 1.089 GB, free: 6.051 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3348, allocations: 8.031 kB / 1.089 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009684/0.3357, allocations: 108.5 kB / 1.089 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.3361, allocations: 267.8 kB / 1.089 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.3361, allocations: 16.75 kB / 1.089 GB, free: 5.621 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.946e-05/0.3362, allocations: 24.27 kB / 1.089 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000736/0.3369, allocations: 386.5 kB / 1.09 GB, free: 5.184 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.3369, allocations: 4 kB / 1.09 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.337, allocations: 11.98 kB / 1.09 GB, free: 5.168 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.793e-05/0.337, allocations: 24.31 kB / 1.09 GB, free: 5.145 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007177/0.3378, allocations: 336.6 kB / 1.09 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.3399, allocations: 1.744 MB / 1.092 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000732/0.3407, allocations: 325.1 kB / 1.092 GB, free: 2.602 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.3409, allocations: 154.8 kB / 1.092 GB, free: 2.445 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001715/0.3411, allocations: 93.09 kB / 1.092 GB, free: 2.336 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3412, allocations: 30.56 kB / 1.092 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/0.3412, allocations: 0 / 1.092 GB, free: 2.297 MB / 0.8419 GB Notification: Performance of matching and sorting (n=21): time 0.001484/0.3427, allocations: 0.5969 MB / 1.093 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.3427, allocations: 85.05 kB / 1.093 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.343, allocations: 215.7 kB / 1.093 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.343, allocations: 29.7 kB / 1.093 GB, free: 1.316 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3432, allocations: 163.8 kB / 1.094 GB, free: 1.152 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.743e-05/0.3432, allocations: 70.94 kB / 1.094 GB, free: 1.082 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001192/0.3434, allocations: 65.89 kB / 1.094 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001679/0.3435, allocations: 330.8 kB / 1.094 GB, free: 0.6797 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.3439, allocations: 137.9 kB / 1.094 GB, free: 0.543 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003644/0.3442, allocations: 223.3 kB / 1.094 GB, free: 296 kB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006691/0.3449, allocations: 371.3 kB / 1.095 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.3449, allocations: 4 kB / 1.095 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009261/0.3459, allocations: 435.5 kB / 1.095 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3459, allocations: 8 kB / 1.095 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.3459, allocations: 0 / 1.095 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/0.3462, allocations: 44.81 kB / 1.095 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003566/0.3465, allocations: 71.88 kB / 1.095 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/0.3482, allocations: 1.619 MB / 1.097 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.3486, allocations: 36 kB / 1.097 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.3486, allocations: 15.98 kB / 1.097 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003906/0.349, allocations: 237.5 kB / 1.097 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003549/0.3494, allocations: 219.3 kB / 1.097 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006227/0.35, allocations: 356.4 kB / 1.098 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.043e-06/0.35, allocations: 0 / 1.098 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009094/0.3509, allocations: 421.7 kB / 1.098 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.351, allocations: 4 kB / 1.098 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.351, allocations: 7.984 kB / 1.098 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.3511, allocations: 45.19 kB / 1.098 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.3515, allocations: 67.89 kB / 1.098 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.353, allocations: 1.607 MB / 1.1 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/0.3533, allocations: 35.81 kB / 1.1 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.3534, allocations: 15.98 kB / 1.1 GB, free: 10.29 MB / 0.8575 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.0001605/0.3535, allocations: 196.3 kB / 1.1 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.098e-05/0.3536, allocations: 23.75 kB / 1.1 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007387/0.3544, allocations: 358.3 kB / 1.1 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.3544, allocations: 8 kB / 1.1 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3544, allocations: 0 / 1.1 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.3544, allocations: 144 / 1.1 GB, free: 9.703 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.356, allocations: 0.956 MB / 1.101 GB, free: 8.668 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.356, allocations: 4 kB / 1.101 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.3563, allocations: 63.81 kB / 1.101 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/0.3564, allocations: 32.83 kB / 1.101 GB, free: 8.566 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.3564, allocations: 16 kB / 1.101 GB, free: 8.551 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/0.3578, allocations: 1.516 MB / 1.103 GB, free: 6.891 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3578, allocations: 8.094 kB / 1.103 GB, free: 6.883 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007799/0.3586, allocations: 0.5313 MB / 1.103 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.3587, allocations: 124.8 kB / 1.103 GB, free: 6.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.3588, allocations: 15.88 kB / 1.103 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002807/0.3591, allocations: 19.97 kB / 1.103 GB, free: 6.137 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.3591, allocations: 27.97 kB / 1.104 GB, free: 6.109 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.767e-05/0.3592, allocations: 4 kB / 1.104 GB, free: 6.105 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002709/0.3594, allocations: 163 kB / 1.104 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3595, allocations: 0 / 1.104 GB, free: 5.945 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007659/0.3602, allocations: 108 kB / 1.104 GB, free: 5.84 MB / 0.8575 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.0002224/0.3605, allocations: 115.2 kB / 1.104 GB, free: 5.719 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001759/0.3622, allocations: 0.7684 MB / 1.105 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3622, allocations: 0 / 1.105 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004518/0.3627, allocations: 270.5 kB / 1.105 GB, free: 4.648 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.3632, allocations: 35.42 kB / 1.105 GB, free: 4.617 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.3644, allocations: 0.6558 MB / 1.106 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/0.3649, allocations: 0.7639 MB / 1.106 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003153/0.3652, allocations: 93.84 kB / 1.106 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.507e-05/0.3653, allocations: 27.44 kB / 1.106 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.3653, allocations: 0 / 1.106 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of Templates: time 0.008297/0.3736, allocations: 3.365 MB / 1.11 GB, free: 15.64 MB / 0.8731 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=480 -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/jenkins/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