Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.599/1.599, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008862/0.0008866, allocations: 176.5 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 223.2 MB / 0.6626 GB, free: 4.332 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007973/0.0007974, allocations: 102.5 kB / 0.7808 GB, free: 43.7 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003854, allocations: 16 kB / 0.9088 GB, free: 0.6328 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6133/0.6137, allocations: 120.3 MB / 1.026 GB, free: 57.01 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.226/0.8397, allocations: 185.5 MB / 1.207 GB, free: 4.629 MB / 0.7761 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.8401, allocations: 104.9 kB / 1.208 GB, free: 4.527 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 0.07281/0.9129, allocations: 30.9 MB / 1.238 GB, free: 5.383 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.422e-06/0.9129, allocations: 0 / 1.238 GB, free: 5.383 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.341e-05/0.913, allocations: 8 kB / 1.238 GB, free: 5.375 MB / 0.8073 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.001344/0.9143, allocations: 0.748 MB / 1.238 GB, free: 4.578 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.9144, allocations: 11.97 kB / 1.238 GB, free: 4.566 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002452/0.9168, allocations: 0.5697 MB / 1.239 GB, free: 3.996 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007967/0.9176, allocations: 487.7 kB / 1.239 GB, free: 3.48 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.9177, allocations: 25.02 kB / 1.239 GB, free: 3.457 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.612e-05/0.9178, allocations: 32.28 kB / 1.24 GB, free: 3.426 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.9192, allocations: 0.7636 MB / 1.24 GB, free: 2.633 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.9193, allocations: 3.938 kB / 1.24 GB, free: 2.629 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.038e-05/0.9193, allocations: 12 kB / 1.24 GB, free: 2.617 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.001e-05/0.9194, allocations: 20.64 kB / 1.24 GB, free: 2.594 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001958/0.9213, allocations: 0.857 MB / 1.241 GB, free: 1.738 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004093/0.9254, allocations: 2.872 MB / 1.244 GB, free: 14.65 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.927, allocations: 0.5176 MB / 1.244 GB, free: 14.12 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006082/0.9276, allocations: 260.6 kB / 1.245 GB, free: 13.86 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 9.883e-05/0.9277, allocations: 93.09 kB / 1.245 GB, free: 13.75 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.9277, allocations: 38.5 kB / 1.245 GB, free: 13.71 MB / 0.823 GB Notification: Performance of pre-optimization done (n=16): time 2.214e-06/0.9278, allocations: 0 / 1.245 GB, free: 13.71 MB / 0.823 GB Notification: Performance of matching and sorting (n=24): time 0.01041/0.9382, allocations: 3.213 MB / 1.248 GB, free: 10.46 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.9382, allocations: 81.11 kB / 1.248 GB, free: 10.37 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005128/0.9388, allocations: 413.6 kB / 1.248 GB, free: 9.957 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 4.22e-05/0.9388, allocations: 37.64 kB / 1.248 GB, free: 9.914 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.939, allocations: 235.7 kB / 1.249 GB, free: 9.676 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 7.33e-05/0.9391, allocations: 86.83 kB / 1.249 GB, free: 9.59 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.551e-05/0.9391, allocations: 8 kB / 1.249 GB, free: 9.582 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.9392, allocations: 342.8 kB / 1.249 GB, free: 9.238 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008024/0.94, allocations: 363.7 kB / 1.249 GB, free: 8.883 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008393/0.9409, allocations: 445.2 kB / 1.25 GB, free: 8.414 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.9426, allocations: 0.7738 MB / 1.251 GB, free: 7.613 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.9426, allocations: 4 kB / 1.251 GB, free: 7.609 MB / 0.823 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.004675/0.9473, allocations: 1.545 MB / 1.252 GB, free: 6.055 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 8.521e-05/0.9474, allocations: 148 kB / 1.252 GB, free: 5.879 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.9474, allocations: 0 / 1.252 GB, free: 5.879 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003681/0.9511, allocations: 0.8558 MB / 1.253 GB, free: 5.016 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005621/0.9516, allocations: 131.8 kB / 1.253 GB, free: 4.887 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006243/0.9579, allocations: 4.672 MB / 1.258 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008019/0.9587, allocations: 123.8 kB / 1.258 GB, free: 15.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.9588, allocations: 12 kB / 1.258 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.9588, allocations: 4 kB / 1.258 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003867/0.9627, allocations: 1.253 MB / 1.259 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.9627, allocations: 4 kB / 1.259 GB, free: 14.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002361/0.9651, allocations: 0.5548 MB / 1.26 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005695/0.9656, allocations: 143.8 kB / 1.26 GB, free: 13.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003231/0.9689, allocations: 2.498 MB / 1.262 GB, free: 11.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000661/0.9695, allocations: 111.9 kB / 1.262 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.9696, allocations: 23.98 kB / 1.262 GB, free: 11.09 MB / 0.8386 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003859/0.97, allocations: 321.4 kB / 1.263 GB, free: 10.76 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.429e-05/0.9701, allocations: 39.52 kB / 1.263 GB, free: 10.72 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004282/0.9744, allocations: 1.415 MB / 1.264 GB, free: 9.285 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.9744, allocations: 8 kB / 1.264 GB, free: 9.277 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.9744, allocations: 0 / 1.264 GB, free: 9.277 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.9744, allocations: 7.922 kB / 1.264 GB, free: 9.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005003/0.9794, allocations: 2.095 MB / 1.266 GB, free: 7.102 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.9794, allocations: 0 / 1.266 GB, free: 7.102 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.9798, allocations: 95.92 kB / 1.266 GB, free: 7.008 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003179/0.983, allocations: 0.7818 MB / 1.267 GB, free: 6.219 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.9831, allocations: 8 kB / 1.267 GB, free: 6.211 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005426/0.9885, allocations: 4.485 MB / 1.271 GB, free: 1.465 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.9885, allocations: 3.938 kB / 1.271 GB, free: 1.461 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004123/0.9926, allocations: 1.448 MB / 1.273 GB, free: 15.98 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.9929, allocations: 164.7 kB / 1.273 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.802e-05/0.993, allocations: 7.984 kB / 1.273 GB, free: 15.79 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.9935, allocations: 99.84 kB / 1.273 GB, free: 15.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.9937, allocations: 35.78 kB / 1.273 GB, free: 15.66 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/0.9937, allocations: 8 kB / 1.273 GB, free: 15.65 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003699/0.9941, allocations: 307.1 kB / 1.273 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9941, allocations: 0 / 1.273 GB, free: 15.35 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0008881/0.995, allocations: 227.9 kB / 1.274 GB, free: 15.13 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002781/0.9953, allocations: 160.4 kB / 1.274 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.003293/0.9986, allocations: 1.621 MB / 1.275 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.9986, allocations: 4.125 kB / 1.275 GB, free: 13.3 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.9998, allocations: 0.6728 MB / 1.276 GB, free: 12.6 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007047/1.001, allocations: 117.3 kB / 1.276 GB, free: 12.49 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/1.003, allocations: 1.223 MB / 1.277 GB, free: 11.24 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/1.003, allocations: 0.9132 MB / 1.278 GB, free: 10.3 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0005733/1.004, allocations: 151.2 kB / 1.278 GB, free: 10.15 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/1.004, allocations: 31.42 kB / 1.278 GB, free: 10.12 MB / 0.8542 GB Notification: Performance of SimCode: time 8.61e-07/1.004, allocations: 0 / 1.278 GB, free: 10.12 MB / 0.8542 GB Notification: Performance of Templates: time 0.01967/1.024, allocations: 12.47 MB / 1.291 GB, free: 13.73 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)