Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.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.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009365/0.0009365, allocations: 94.28 kB / 15.37 MB, free: 0.7266 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.001074/0.001074, allocations: 179 kB / 16.27 MB, free: 6.664 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.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.888/2.888, allocations: 473.4 MB / 0.7469 GB, free: 6.039 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003281, allocations: 11.81 kB / 0.9158 GB, free: 33.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3297, allocations: 162.2 MB / 1.074 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005295/0.3351, allocations: 4.04 MB / 1.078 GB, free: 3.457 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.005835/0.3409, allocations: 3.221 MB / 1.081 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/0.3413, allocations: 7.938 kB / 1.081 GB, free: 224 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0007183/0.3421, allocations: 175 kB / 1.081 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001099/0.3432, allocations: 355.5 kB / 1.082 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006379/0.3439, allocations: 227.5 kB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0009673/0.3448, allocations: 0.8002 MB / 1.083 GB, free: 14.68 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001356/0.3462, allocations: 0.8263 MB / 1.084 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005201/0.3467, allocations: 227.1 kB / 1.084 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004574/0.3472, allocations: 251 kB / 1.084 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.719e-05/0.3473, allocations: 20 kB / 1.084 GB, free: 13.33 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000595/0.3479, allocations: 331.3 kB / 1.084 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001703/0.3481, allocations: 135.6 kB / 1.084 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002662/0.3483, allocations: 228.5 kB / 1.085 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000983/0.3493, allocations: 0.7596 MB / 1.085 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3493, allocations: 3.938 kB / 1.085 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.043e-06/0.3493, allocations: 0 / 1.085 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.944e-05/0.3494, allocations: 0 / 1.085 GB, free: 11.88 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001383/0.3508, allocations: 0.6897 MB / 1.086 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3508, allocations: 8.031 kB / 1.086 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003086/0.3539, allocations: 0.6906 MB / 1.087 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007655/0.3547, allocations: 447.7 kB / 1.087 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.3547, allocations: 25.02 kB / 1.087 GB, free: 9.941 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.782e-05/0.3548, allocations: 32.12 kB / 1.087 GB, free: 9.91 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001694/0.3565, allocations: 0.7982 MB / 1.088 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.3566, allocations: 0 / 1.088 GB, free: 9.082 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.267e-05/0.3566, allocations: 12 kB / 1.088 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001131/0.3567, allocations: 40.61 kB / 1.088 GB, free: 9.031 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002189/0.3589, allocations: 0.896 MB / 1.089 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004054/0.363, allocations: 2.819 MB / 1.092 GB, free: 5.082 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.3648, allocations: 0.5331 MB / 1.092 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000797/0.3656, allocations: 268.6 kB / 1.092 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001335/0.3658, allocations: 89.09 kB / 1.093 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.448e-05/0.3658, allocations: 34.56 kB / 1.093 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.3658, allocations: 0 / 1.093 GB, free: 4.125 MB / 0.8419 GB Notification: Performance of matching and sorting (n=24): time 0.01279/0.3786, allocations: 3.211 MB / 1.096 GB, free: 0.8789 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.3787, allocations: 51.41 kB / 1.096 GB, free: 0.8164 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004976/0.3792, allocations: 401.6 kB / 1.096 GB, free: 432 kB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.735e-05/0.3793, allocations: 33.69 kB / 1.096 GB, free: 392 kB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.3795, allocations: 239.7 kB / 1.096 GB, free: 148 kB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.756e-05/0.3796, allocations: 82.83 kB / 1.097 GB, free: 64 kB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.3797, allocations: 33.7 kB / 1.097 GB, free: 24 kB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.3798, allocations: 346.8 kB / 1.097 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.3808, allocations: 367.7 kB / 1.097 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.3819, allocations: 440.5 kB / 1.098 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.3839, allocations: 0.7932 MB / 1.098 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.384, allocations: 0 / 1.098 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00545/0.3894, allocations: 1.538 MB / 1.1 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001091/0.3895, allocations: 148 kB / 1.1 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3895, allocations: 4 kB / 1.1 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00399/0.3935, allocations: 0.8208 MB / 1.101 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006836/0.3942, allocations: 143.7 kB / 1.101 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006713/0.401, allocations: 4.552 MB / 1.105 GB, free: 6.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000845/0.4018, allocations: 115.8 kB / 1.106 GB, free: 6.402 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/0.4019, allocations: 11.98 kB / 1.106 GB, free: 6.391 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.296e-06/0.4019, allocations: 5.625 kB / 1.106 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004615/0.4065, allocations: 1.273 MB / 1.107 GB, free: 5.109 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4066, allocations: 4 kB / 1.107 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/0.4092, allocations: 0.5432 MB / 1.107 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007134/0.4099, allocations: 147.7 kB / 1.108 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004603/0.4146, allocations: 2.701 MB / 1.11 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008086/0.4154, allocations: 115.9 kB / 1.11 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.4154, allocations: 11.98 kB / 1.11 GB, free: 1.453 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003869/0.4158, allocations: 320.9 kB / 1.111 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.311e-05/0.4159, allocations: 31.62 kB / 1.111 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005017/0.421, allocations: 1.416 MB / 1.112 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.421, allocations: 0 / 1.112 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.421, allocations: 4 kB / 1.112 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.421, allocations: 3.938 kB / 1.112 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005596/0.4266, allocations: 2.048 MB / 1.114 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4266, allocations: 4 kB / 1.114 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.427, allocations: 83.84 kB / 1.114 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003607/0.4306, allocations: 0.7584 MB / 1.115 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.4307, allocations: 11.98 kB / 1.115 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005941/0.4366, allocations: 4.36 MB / 1.119 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.4367, allocations: 0 / 1.119 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004665/0.4413, allocations: 1.413 MB / 1.12 GB, free: 6.605 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.4416, allocations: 164.7 kB / 1.121 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.088e-05/0.4417, allocations: 11.94 kB / 1.121 GB, free: 6.414 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006449/0.4424, allocations: 95.84 kB / 1.121 GB, free: 6.32 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4425, allocations: 23.97 kB / 1.121 GB, free: 6.297 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.4426, allocations: 11.94 kB / 1.121 GB, free: 6.285 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004646/0.443, allocations: 311.1 kB / 1.121 GB, free: 5.98 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.853e-06/0.443, allocations: 4 kB / 1.121 GB, free: 5.977 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0009867/0.444, allocations: 203.9 kB / 1.121 GB, free: 5.777 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002191/0.4443, allocations: 111.2 kB / 1.121 GB, free: 5.66 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004648/0.4489, allocations: 1.749 MB / 1.123 GB, free: 3.871 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4489, allocations: 0 / 1.123 GB, free: 3.871 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001235/0.4502, allocations: 0.6418 MB / 1.124 GB, free: 3.203 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000746/0.4509, allocations: 124.2 kB / 1.124 GB, free: 3.086 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.4531, allocations: 1.242 MB / 1.125 GB, free: 1.809 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007386/0.4539, allocations: 0.9132 MB / 1.126 GB, free: 0.8711 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0006336/0.4545, allocations: 155.2 kB / 1.126 GB, free: 0.7227 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000142/0.4547, allocations: 31.42 kB / 1.126 GB, free: 0.6914 MB / 0.8731 GB Notification: Performance of SimCode: time 3.91e-07/0.4547, allocations: 0 / 1.126 GB, free: 0.6914 MB / 0.8731 GB Notification: Performance of Templates: time 0.02066/0.4753, allocations: 12.05 MB / 1.138 GB, free: 4.699 MB / 0.8887 GB make -j1 -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)