Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 108.4 kB / 16.37 MB, free: 5.516 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.001025/0.001025, allocations: 193.3 kB / 17.31 MB, free: 5.16 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.274/1.274, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002103/0.002103, allocations: 290.4 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9053/0.9053, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 93.39 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1491, allocations: 86.97 MB / 0.6816 GB, free: 7.414 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine): time 0.2776/0.4267, allocations: 10.89 MB / 0.6923 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0113/0.4381, allocations: 8.787 MB / 0.7008 GB, free: 7.801 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.4391, allocations: 62.59 kB / 0.7009 GB, free: 7.773 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003574/0.4428, allocations: 1.671 MB / 0.7025 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004144/0.4469, allocations: 1.528 MB / 0.704 GB, free: 5.863 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.4486, allocations: 0.6738 MB / 0.7047 GB, free: 5.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002691/0.4513, allocations: 2.283 MB / 0.7069 GB, free: 4.438 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001776/0.4531, allocations: 1.382 MB / 0.7083 GB, free: 3.793 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002167/0.4553, allocations: 0.9821 MB / 0.7092 GB, free: 3.371 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.4572, allocations: 1.022 MB / 0.7102 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002304/0.4574, allocations: 142.1 kB / 0.7104 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001679/0.4591, allocations: 0.7972 MB / 0.7111 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007011/0.4598, allocations: 0.5712 MB / 0.7117 GB, free: 2.406 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.4609, allocations: 0.882 MB / 0.7125 GB, free: 1.867 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003532/0.4645, allocations: 2.568 MB / 0.7151 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.4645, allocations: 4 kB / 0.7151 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4645, allocations: 0 / 0.7151 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.897e-05/0.4646, allocations: 4 kB / 0.7151 GB, free: 0.9688 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.003906/0.4685, allocations: 2.023 MB / 0.717 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.4685, allocations: 9.312 kB / 0.717 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.4787, allocations: 2.046 MB / 0.719 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.4814, allocations: 1.217 MB / 0.7202 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.389e-05/0.4814, allocations: 85.61 kB / 0.7203 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002465/0.4817, allocations: 118.7 kB / 0.7204 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005035/0.4867, allocations: 2.483 MB / 0.7229 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.4868, allocations: 4.125 kB / 0.7229 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001548/0.4869, allocations: 54.55 kB / 0.7229 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003139/0.4873, allocations: 130.6 kB / 0.723 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006346/0.4936, allocations: 2.534 MB / 0.7255 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01212/0.5057, allocations: 10.04 MB / 0.7353 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005441/0.5112, allocations: 1.944 MB / 0.7372 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/0.5136, allocations: 0.9731 MB / 0.7382 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.5137, allocations: 5.875 kB / 0.7382 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.5137, allocations: 42.84 kB / 0.7382 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=53): time 2.074e-06/0.5137, allocations: 0 / 0.7382 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of matching and sorting (n=81): time 0.02777/0.5415, allocations: 8.706 MB / 0.7467 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.5416, allocations: 64.06 kB / 0.7468 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/0.543, allocations: 1.097 MB / 0.7479 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.745e-05/0.5431, allocations: 37.7 kB / 0.7479 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004816/0.5436, allocations: 0.7456 MB / 0.7486 GB, free: 9.215 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002383/0.5438, allocations: 287.9 kB / 0.7489 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003707/0.5442, allocations: 198.5 kB / 0.7491 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.5443, allocations: 341.9 kB / 0.7494 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002561/0.5469, allocations: 1.075 MB / 0.7505 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00272/0.5496, allocations: 1.301 MB / 0.7517 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005335/0.555, allocations: 2.378 MB / 0.754 GB, free: 3.449 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.555, allocations: 4.688 kB / 0.7541 GB, free: 3.445 MB / 0.5137 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.008008/0.563, allocations: 3.276 MB / 0.7573 GB, free: 132 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.5631, allocations: 8 kB / 0.7573 GB, free: 124 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.5631, allocations: 8 kB / 0.7573 GB, free: 116 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00263/0.5657, allocations: 0.7862 MB / 0.758 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001701/0.5674, allocations: 423.2 kB / 0.7584 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0152/0.5826, allocations: 15.91 MB / 0.774 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.585, allocations: 295.6 kB / 0.7743 GB, free: 13.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.5851, allocations: 51.91 kB / 0.7743 GB, free: 13.52 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,2,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007633/0.5859, allocations: 402.9 kB / 0.7747 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.5862, allocations: 146.2 kB / 0.7748 GB, free: 12.97 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007796/0.594, allocations: 3.206 MB / 0.778 GB, free: 9.73 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.594, allocations: 11.94 kB / 0.778 GB, free: 9.719 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.594, allocations: 4 kB / 0.778 GB, free: 9.715 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.594, allocations: 7.984 kB / 0.778 GB, free: 9.707 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.6046, allocations: 4.901 MB / 0.7828 GB, free: 4.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.6047, allocations: 4 kB / 0.7828 GB, free: 4.676 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/0.6062, allocations: 359.7 kB / 0.7831 GB, free: 4.324 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002284/0.6085, allocations: 0.6935 MB / 0.7838 GB, free: 3.605 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.6086, allocations: 35.97 kB / 0.7838 GB, free: 3.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01459/0.6232, allocations: 15.52 MB / 0.799 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.6232, allocations: 4.031 kB / 0.799 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007493/0.6307, allocations: 3.047 MB / 0.802 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009856/0.6318, allocations: 383.2 kB / 0.8023 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002013/0.632, allocations: 16 kB / 0.8024 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001687/0.6337, allocations: 291.5 kB / 0.8026 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.6339, allocations: 80.44 kB / 0.8027 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.69e-05/0.634, allocations: 43.95 kB / 0.8027 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0009485/0.635, allocations: 0.7366 MB / 0.8035 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.9e-07/0.635, allocations: 0 / 0.8035 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001413/0.6364, allocations: 436 kB / 0.8039 GB, free: 13.8 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002372/0.6367, allocations: 131.2 kB / 0.804 GB, free: 13.67 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007597/0.6443, allocations: 3.633 MB / 0.8076 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.6443, allocations: 0 / 0.8076 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.004434/0.6487, allocations: 2.371 MB / 0.8099 GB, free: 7.457 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/0.6509, allocations: 0.5323 MB / 0.8104 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00666/0.6576, allocations: 3.421 MB / 0.8137 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/0.6587, allocations: 1.388 MB / 0.8151 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001341/0.66, allocations: 387.8 kB / 0.8155 GB, free: 1.672 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.6604, allocations: 99.38 kB / 0.8156 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of SimCode: time 1.012e-06/0.6604, allocations: 0 / 0.8156 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of Templates: time 0.04865/0.7091, allocations: 30.26 MB / 0.8451 GB, free: 3.738 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine.pipe 2>&1)