Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_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_8_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.001277/0.001277, allocations: 101.2 kB / 16.29 MB, free: 6.43 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.001282/0.001282, allocations: 185 kB / 17.22 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.74/1.74, allocations: 205.1 MB / 223.1 MB, free: 12.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.145/2.145, allocations: 292.3 MB / 0.5495 GB, free: 17.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001386, allocations: 71.03 kB / 0.6722 GB, free: 6.551 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2873, allocations: 114.6 MB / 0.7841 GB, free: 3.871 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.5395/0.8269, allocations: 4.353 MB / 0.7883 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.00582/0.8327, allocations: 3.245 MB / 0.7915 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.8333, allocations: 12 kB / 0.7915 GB, free: 45.55 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.8352, allocations: 0.5066 MB / 0.792 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.001438/0.8366, allocations: 383.2 kB / 0.7924 GB, free: 45.36 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007741/0.8374, allocations: 257.2 kB / 0.7926 GB, free: 45.34 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0008924/0.8383, allocations: 0.5911 MB / 0.7932 GB, free: 45.3 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007549/0.8391, allocations: 0.5352 MB / 0.7937 GB, free: 45.26 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005305/0.8396, allocations: 270.5 kB / 0.794 GB, free: 45.22 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004191/0.84, allocations: 278.6 kB / 0.7942 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 6.948e-05/0.8401, allocations: 39.19 kB / 0.7943 GB, free: 45.16 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007046/0.8408, allocations: 290.5 kB / 0.7946 GB, free: 45.12 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001887/0.841, allocations: 166.6 kB / 0.7947 GB, free: 45.1 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002443/0.8413, allocations: 232.6 kB / 0.7949 GB, free: 45.04 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0008749/0.8422, allocations: 0.7767 MB / 0.7957 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.8422, allocations: 4 kB / 0.7957 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.134e-06/0.8422, allocations: 3.406 kB / 0.7957 GB, free: 44.92 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.8422, allocations: 0 / 0.7957 GB, free: 44.92 MB / 0.6544 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.001479/0.8437, allocations: 0.7711 MB / 0.7965 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/0.8438, allocations: 6.844 kB / 0.7965 GB, free: 44.4 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002743/0.8465, allocations: 0.6565 MB / 0.7971 GB, free: 44.37 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008859/0.8474, allocations: 440.7 kB / 0.7975 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.8475, allocations: 23.91 kB / 0.7976 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.68e-05/0.8476, allocations: 30.73 kB / 0.7976 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/0.8494, allocations: 0.7776 MB / 0.7983 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.8495, allocations: 4.906 kB / 0.7983 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.752e-05/0.8495, allocations: 15.27 kB / 0.7984 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001456/0.8497, allocations: 43.2 kB / 0.7984 GB, free: 44.01 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002343/0.852, allocations: 0.8567 MB / 0.7992 GB, free: 44 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004811/0.8569, allocations: 2.785 MB / 0.802 GB, free: 42.21 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.8587, allocations: 0.5046 MB / 0.8024 GB, free: 42.09 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008234/0.8595, allocations: 246.5 kB / 0.8027 GB, free: 42.03 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.8597, allocations: 93.36 kB / 0.8028 GB, free: 41.93 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.8597, allocations: 33.38 kB / 0.8028 GB, free: 41.89 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=16): time 2.895e-06/0.8597, allocations: 0 / 0.8028 GB, free: 41.89 MB / 0.6544 GB Notification: Performance of matching and sorting (n=24): time 0.01183/0.8716, allocations: 2.967 MB / 0.8057 GB, free: 41.24 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.8716, allocations: 56.94 kB / 0.8058 GB, free: 41.18 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006613/0.8723, allocations: 405.8 kB / 0.8061 GB, free: 40.98 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 7.728e-05/0.8724, allocations: 30.73 kB / 0.8062 GB, free: 40.95 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.8726, allocations: 235.6 kB / 0.8064 GB, free: 40.76 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 8.566e-05/0.8727, allocations: 80.91 kB / 0.8065 GB, free: 40.7 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.8729, allocations: 65.23 kB / 0.8065 GB, free: 40.66 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.000129/0.873, allocations: 351.6 kB / 0.8069 GB, free: 40.33 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000946/0.874, allocations: 343.7 kB / 0.8072 GB, free: 40.24 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.8751, allocations: 419.7 kB / 0.8076 GB, free: 40.06 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001906/0.877, allocations: 0.7389 MB / 0.8083 GB, free: 39.78 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.877, allocations: 1.375 kB / 0.8083 GB, free: 39.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00559/0.8826, allocations: 1.464 MB / 0.8098 GB, free: 39.44 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.8827, allocations: 11.16 kB / 0.8098 GB, free: 39.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.8827, allocations: 3.312 kB / 0.8098 GB, free: 39.44 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003864/0.8866, allocations: 0.7748 MB / 0.8105 GB, free: 39.36 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006886/0.8873, allocations: 122.8 kB / 0.8106 GB, free: 39.36 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007291/0.8946, allocations: 4.846 MB / 0.8154 GB, free: 35.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009521/0.8956, allocations: 105.9 kB / 0.8155 GB, free: 35.91 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.535e-05/0.8956, allocations: 13.19 kB / 0.8155 GB, free: 35.91 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001256/0.8969, allocations: 0.5237 MB / 0.816 GB, free: 35.7 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008955/0.8978, allocations: 405.4 kB / 0.8164 GB, free: 35.53 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001735/0.8996, allocations: 0.7098 MB / 0.8171 GB, free: 35.25 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.975e-06/0.8996, allocations: 1.062 kB / 0.8171 GB, free: 35.25 MB / 0.6544 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004302/0.9039, allocations: 1.252 MB / 0.8183 GB, free: 34.95 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.9039, allocations: 5.844 kB / 0.8183 GB, free: 34.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.904, allocations: 2.562 kB / 0.8183 GB, free: 34.95 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002282/0.9062, allocations: 0.497 MB / 0.8188 GB, free: 34.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000707/0.907, allocations: 130.7 kB / 0.8189 GB, free: 34.9 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003843/0.9108, allocations: 2.603 MB / 0.8215 GB, free: 33.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009273/0.9118, allocations: 107 kB / 0.8216 GB, free: 33.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.9119, allocations: 17.03 kB / 0.8216 GB, free: 33.1 MB / 0.6544 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.0002776/0.9121, allocations: 201 kB / 0.8218 GB, free: 32.9 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001245/0.9123, allocations: 36.67 kB / 0.8218 GB, free: 32.88 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005047/0.9173, allocations: 1.342 MB / 0.8231 GB, free: 32.56 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.9174, allocations: 4.781 kB / 0.8231 GB, free: 32.56 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.9174, allocations: 4.875 kB / 0.8231 GB, free: 32.55 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.9174, allocations: 1.5 kB / 0.8231 GB, free: 32.55 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.9236, allocations: 1.992 MB / 0.8251 GB, free: 31.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.9237, allocations: 1.188 kB / 0.8251 GB, free: 31.8 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.9241, allocations: 74.91 kB / 0.8251 GB, free: 31.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003315/0.9274, allocations: 0.7088 MB / 0.8258 GB, free: 31.73 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.358e-05/0.9276, allocations: 7.703 kB / 0.8258 GB, free: 31.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00636/0.9339, allocations: 4.672 MB / 0.8304 GB, free: 28.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.934, allocations: 7.656 kB / 0.8304 GB, free: 28.31 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.9384, allocations: 1.366 MB / 0.8317 GB, free: 27.58 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003095/0.9387, allocations: 157.7 kB / 0.8319 GB, free: 27.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.33e-05/0.9388, allocations: 6.75 kB / 0.8319 GB, free: 27.44 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.9393, allocations: 86.47 kB / 0.832 GB, free: 27.39 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.9396, allocations: 24.78 kB / 0.832 GB, free: 27.38 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/0.9396, allocations: 10.88 kB / 0.832 GB, free: 27.38 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0004141/0.94, allocations: 303.6 kB / 0.8323 GB, free: 27.19 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.94, allocations: 4 kB / 0.8323 GB, free: 27.18 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00103/0.9411, allocations: 194.6 kB / 0.8325 GB, free: 27.17 MB / 0.6544 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.0001935/0.9413, allocations: 107.4 kB / 0.8326 GB, free: 27.07 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003528/0.9448, allocations: 1.529 MB / 0.8341 GB, free: 26.12 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.9448, allocations: 0.625 kB / 0.8341 GB, free: 26.12 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001155/0.946, allocations: 0.6347 MB / 0.8347 GB, free: 25.68 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008004/0.9468, allocations: 119.9 kB / 0.8348 GB, free: 25.63 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.949, allocations: 1.043 MB / 0.8358 GB, free: 24.99 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004546/0.9495, allocations: 0.9178 MB / 0.8367 GB, free: 24.18 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0005508/0.95, allocations: 149 kB / 0.8369 GB, free: 24.13 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.9502, allocations: 35.88 kB / 0.8369 GB, free: 24.11 MB / 0.6544 GB Notification: Performance of SimCode: time 9.52e-07/0.9502, allocations: 0 / 0.8369 GB, free: 24.11 MB / 0.6544 GB Notification: Performance of Templates: time 0.02261/0.9728, allocations: 12.14 MB / 0.8488 GB, free: 18.21 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.makefile (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & ./Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)