Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.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_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 107.9 kB / 16.41 MB, free: 6.492 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.001332/0.001331, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.483/1.483, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002191/0.002191, allocations: 293 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.048/1.048, allocations: 169.3 MB / 0.499 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 100.3 kB / 0.6821 GB, free: 6.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5584/0.5612, allocations: 86.97 MB / 0.7671 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L): time 0.008035/0.5693, allocations: 6.082 MB / 0.773 GB, free: 13.79 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005873/0.5753, allocations: 3.137 MB / 0.7761 GB, free: 10.64 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007604/0.5761, allocations: 27.81 kB / 0.7761 GB, free: 10.61 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.5789, allocations: 0.9371 MB / 0.777 GB, free: 9.672 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001624/0.5805, allocations: 473.5 kB / 0.7774 GB, free: 9.207 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.5821, allocations: 478.8 kB / 0.7779 GB, free: 8.738 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001723/0.5838, allocations: 1.092 MB / 0.779 GB, free: 7.641 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001193/0.5851, allocations: 0.6385 MB / 0.7796 GB, free: 7.004 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009365/0.586, allocations: 442.4 kB / 0.78 GB, free: 6.57 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009629/0.587, allocations: 474.2 kB / 0.7805 GB, free: 6.105 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001973/0.5872, allocations: 56 kB / 0.7805 GB, free: 6.051 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.5885, allocations: 487 kB / 0.781 GB, free: 5.574 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004101/0.5889, allocations: 291.2 kB / 0.7813 GB, free: 5.289 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006895/0.5896, allocations: 398 kB / 0.7816 GB, free: 4.898 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.5916, allocations: 1.171 MB / 0.7828 GB, free: 3.727 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.073e-05/0.5917, allocations: 7.984 kB / 0.7828 GB, free: 3.719 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.915e-06/0.5917, allocations: 0 / 0.7828 GB, free: 3.719 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.493e-05/0.5917, allocations: 0 / 0.7828 GB, free: 3.719 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002284/0.594, allocations: 1.052 MB / 0.7838 GB, free: 2.613 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.062e-05/0.5941, allocations: 8.031 kB / 0.7838 GB, free: 2.605 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.5958, allocations: 223.6 kB / 0.784 GB, free: 2.387 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.5968, allocations: 0.5883 MB / 0.7846 GB, free: 1.762 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.902e-05/0.5969, allocations: 45.67 kB / 0.7847 GB, free: 1.719 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.597, allocations: 60.38 kB / 0.7847 GB, free: 1.66 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/0.5986, allocations: 1.038 MB / 0.7857 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.926e-05/0.5987, allocations: 11.89 kB / 0.7857 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.948e-05/0.5988, allocations: 35.98 kB / 0.7858 GB, free: 480 kB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.088e-05/0.5989, allocations: 61.28 kB / 0.7858 GB, free: 420 kB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.6, allocations: 0.6996 MB / 0.7865 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005515/0.6055, allocations: 5.725 MB / 0.7921 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008695/0.6064, allocations: 0.6051 MB / 0.7927 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008186/0.6073, allocations: 428.6 kB / 0.7931 GB, free: 8.48 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.256e-05/0.6074, allocations: 4 kB / 0.7931 GB, free: 8.477 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.6074, allocations: 38.56 kB / 0.7932 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=41): time 2.875e-06/0.6074, allocations: 4 kB / 0.7932 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.004461/0.6119, allocations: 2.011 MB / 0.7951 GB, free: 6.32 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.6119, allocations: 55.41 kB / 0.7952 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000559/0.6125, allocations: 458.7 kB / 0.7956 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.717e-05/0.6126, allocations: 33.7 kB / 0.7956 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004175/0.613, allocations: 387.1 kB / 0.796 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.6131, allocations: 153.8 kB / 0.7962 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002637/0.6134, allocations: 106.2 kB / 0.7963 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.6135, allocations: 362.8 kB / 0.7966 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004203/0.614, allocations: 249.2 kB / 0.7968 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000662/0.6146, allocations: 449 kB / 0.7973 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009258/0.6156, allocations: 0.7487 MB / 0.798 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6156, allocations: 0 / 0.798 GB, free: 3.129 MB / 0.5606 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001831/0.6174, allocations: 1.043 MB / 0.799 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.6175, allocations: 12 kB / 0.799 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.47e-05/0.6175, allocations: 8 kB / 0.799 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009738/0.6185, allocations: 323 kB / 0.7993 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003126/0.6188, allocations: 95.81 kB / 0.7994 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007917/0.6267, allocations: 7.473 MB / 0.8067 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005155/0.6273, allocations: 35.95 kB / 0.8068 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.156e-05/0.6273, allocations: 24 kB / 0.8068 GB, free: 9.527 MB / 0.5762 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 (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (1,5,100.0%), (1,3,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003743/0.6277, allocations: 245.6 kB / 0.807 GB, free: 9.277 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.971e-05/0.6278, allocations: 59.28 kB / 0.8071 GB, free: 9.219 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001759/0.6296, allocations: 0.8925 MB / 0.808 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.6296, allocations: 4 kB / 0.808 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.6296, allocations: 4 kB / 0.808 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.6296, allocations: 3.984 kB / 0.808 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002573/0.6322, allocations: 1.682 MB / 0.8096 GB, free: 6.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.6322, allocations: 3.984 kB / 0.8096 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.6324, allocations: 39.97 kB / 0.8097 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009793/0.6334, allocations: 307.6 kB / 0.8099 GB, free: 6.164 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.184e-05/0.6334, allocations: 12 kB / 0.81 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007319/0.6407, allocations: 7.468 MB / 0.8172 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.6408, allocations: 3.938 kB / 0.8173 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.6427, allocations: 0.9878 MB / 0.8182 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.6429, allocations: 168.4 kB / 0.8184 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.31e-05/0.643, allocations: 12 kB / 0.8184 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002764/0.6433, allocations: 23.91 kB / 0.8184 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.6435, allocations: 43.89 kB / 0.8185 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.586e-05/0.6435, allocations: 12 kB / 0.8185 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004238/0.6439, allocations: 306.9 kB / 0.8188 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6439, allocations: 0 / 0.8188 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009241/0.6449, allocations: 196 kB / 0.8189 GB, free: 12.32 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,7,88.9%), (2,2,100.0%), (1,3,100.0%), (1,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.0001937/0.6451, allocations: 115.2 kB / 0.8191 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001922/0.647, allocations: 1.191 MB / 0.8202 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.647, allocations: 0 / 0.8202 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.6483, allocations: 0.8542 MB / 0.8211 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.6493, allocations: 212.4 kB / 0.8213 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002326/0.6517, allocations: 1.295 MB / 0.8225 GB, free: 8.516 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000686/0.6524, allocations: 0.9921 MB / 0.8235 GB, free: 7.496 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.6525, allocations: 39.44 kB / 0.8235 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of SimCode: time 7.82e-07/0.6525, allocations: 0 / 0.8235 GB, free: 7.457 MB / 0.5919 GB Notification: Performance of Templates: time 0.02217/0.6747, allocations: 18.49 MB / 0.8416 GB, free: 5 MB / 0.6075 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_L.pipe 2>&1)