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.001603/0.001604, allocations: 105.3 kB / 16.36 MB, free: 5.961 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.001626/0.001626, allocations: 191.1 kB / 17.3 MB, free: 5.57 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.402/1.402, allocations: 205.1 MB / 223.2 MB, free: 4.043 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.721/1.721, allocations: 292.3 MB / 0.5496 GB, free: 12.73 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.001406/0.001406, allocations: 71.25 kB / 0.6729 GB, free: 25.69 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2422, allocations: 114.5 MB / 0.7848 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.007159/0.2494, allocations: 4.359 MB / 0.789 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00541/0.2548, allocations: 3.254 MB / 0.7922 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000459/0.2553, allocations: 15.94 kB / 0.7922 GB, free: 5.066 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001863/0.2572, allocations: 0.494 MB / 0.7927 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.2587, allocations: 390 kB / 0.7931 GB, free: 4.188 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009207/0.2596, allocations: 247.4 kB / 0.7933 GB, free: 3.945 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001168/0.2608, allocations: 0.5986 MB / 0.7939 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008726/0.2617, allocations: 0.5287 MB / 0.7944 GB, free: 2.816 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006672/0.2624, allocations: 279.2 kB / 0.7947 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006148/0.263, allocations: 267 kB / 0.795 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.2631, allocations: 44 kB / 0.795 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007072/0.2638, allocations: 299.4 kB / 0.7953 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.2641, allocations: 163.6 kB / 0.7954 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002843/0.2644, allocations: 226.9 kB / 0.7957 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.2654, allocations: 0.783 MB / 0.7964 GB, free: 0.7773 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.2654, allocations: 0 / 0.7964 GB, free: 0.7773 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2655, allocations: 3.938 kB / 0.7964 GB, free: 0.7734 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.606e-06/0.2655, allocations: 0 / 0.7964 GB, free: 0.7734 MB / 0.6075 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.00146/0.2669, allocations: 0.7754 MB / 0.7972 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.267, allocations: 8.031 kB / 0.7972 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002597/0.2696, allocations: 0.6516 MB / 0.7978 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007196/0.2703, allocations: 439.8 kB / 0.7982 GB, free: 14.82 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.2704, allocations: 21.03 kB / 0.7983 GB, free: 14.8 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-05/0.2705, allocations: 36.12 kB / 0.7983 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.2719, allocations: 0.7747 MB / 0.7991 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.2719, allocations: 3.938 kB / 0.7991 GB, free: 13.95 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/0.272, allocations: 16 kB / 0.7991 GB, free: 13.94 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/0.2721, allocations: 44.61 kB / 0.7991 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001892/0.274, allocations: 0.8492 MB / 0.7999 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003867/0.2779, allocations: 2.796 MB / 0.8027 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.2794, allocations: 0.5058 MB / 0.8032 GB, free: 9.504 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006593/0.2801, allocations: 252.6 kB / 0.8034 GB, free: 9.254 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001164/0.2802, allocations: 81.11 kB / 0.8035 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.2803, allocations: 34.56 kB / 0.8035 GB, free: 9.113 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.2803, allocations: 0 / 0.8035 GB, free: 9.113 MB / 0.6231 GB Notification: Performance of matching and sorting (n=24): time 0.01113/0.2914, allocations: 2.966 MB / 0.8064 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.2915, allocations: 51.41 kB / 0.8065 GB, free: 6.055 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004935/0.292, allocations: 409.5 kB / 0.8069 GB, free: 5.648 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.831e-05/0.2921, allocations: 33.7 kB / 0.8069 GB, free: 5.609 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.2922, allocations: 239.8 kB / 0.8071 GB, free: 5.367 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 8.943e-05/0.2923, allocations: 86.73 kB / 0.8072 GB, free: 5.281 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.2925, allocations: 69.69 kB / 0.8073 GB, free: 5.207 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2926, allocations: 342.8 kB / 0.8076 GB, free: 4.863 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008307/0.2935, allocations: 348.4 kB / 0.8079 GB, free: 4.52 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008671/0.2944, allocations: 421 kB / 0.8083 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.296, allocations: 0.7321 MB / 0.809 GB, free: 3.32 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.296, allocations: 0 / 0.809 GB, free: 3.32 MB / 0.6231 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.005236/0.3013, allocations: 1.473 MB / 0.8105 GB, free: 1.836 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.3013, allocations: 4 kB / 0.8105 GB, free: 1.832 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3013, allocations: 4 kB / 0.8105 GB, free: 1.828 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003644/0.305, allocations: 0.7702 MB / 0.8112 GB, free: 1.051 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.3056, allocations: 123.8 kB / 0.8114 GB, free: 0.9297 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006664/0.3122, allocations: 4.84 MB / 0.8161 GB, free: 11.81 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007635/0.313, allocations: 111.9 kB / 0.8162 GB, free: 11.7 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.3131, allocations: 15.98 kB / 0.8162 GB, free: 11.69 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001075/0.3142, allocations: 0.516 MB / 0.8167 GB, free: 11.17 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008431/0.315, allocations: 413.1 kB / 0.8171 GB, free: 10.73 MB / 0.6388 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001734/0.3168, allocations: 0.7102 MB / 0.8178 GB, free: 9.996 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.186e-06/0.3168, allocations: 4 kB / 0.8178 GB, free: 9.992 MB / 0.6388 GB Notification: Performance of matching and sorting (n=35) (initialization_lambda0): time 0.004195/0.321, allocations: 1.243 MB / 0.819 GB, free: 8.738 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.321, allocations: 4 kB / 0.819 GB, free: 8.734 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.381e-06/0.321, allocations: 4 kB / 0.819 GB, free: 8.73 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002429/0.3235, allocations: 0.4964 MB / 0.8195 GB, free: 8.23 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006879/0.3242, allocations: 135.8 kB / 0.8196 GB, free: 8.098 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004324/0.3285, allocations: 2.612 MB / 0.8222 GB, free: 5.348 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008019/0.3293, allocations: 103.8 kB / 0.8223 GB, free: 5.246 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.4e-05/0.3294, allocations: 11.94 kB / 0.8223 GB, free: 5.234 MB / 0.6388 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.0002479/0.3296, allocations: 196.2 kB / 0.8225 GB, free: 5.035 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.3298, allocations: 43.62 kB / 0.8225 GB, free: 4.992 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004722/0.3345, allocations: 1.336 MB / 0.8238 GB, free: 3.637 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3345, allocations: 4 kB / 0.8238 GB, free: 3.633 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3345, allocations: 0 / 0.8238 GB, free: 3.633 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.3345, allocations: 7.984 kB / 0.8238 GB, free: 3.625 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005597/0.3401, allocations: 1.985 MB / 0.8258 GB, free: 1.562 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.3402, allocations: 4 kB / 0.8258 GB, free: 1.559 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.3406, allocations: 79.84 kB / 0.8259 GB, free: 1.48 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003105/0.3437, allocations: 0.7039 MB / 0.8266 GB, free: 0.7695 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.3437, allocations: 11.94 kB / 0.8266 GB, free: 0.7578 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006151/0.3499, allocations: 4.683 MB / 0.8311 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.3499, allocations: 4.031 kB / 0.8311 GB, free: 11.79 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004418/0.3543, allocations: 1.353 MB / 0.8325 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000322/0.3547, allocations: 160.7 kB / 0.8326 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.868e-05/0.3548, allocations: 11.94 kB / 0.8326 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006016/0.3554, allocations: 83.84 kB / 0.8327 GB, free: 10.14 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.3556, allocations: 23.97 kB / 0.8327 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.048e-05/0.3556, allocations: 12 kB / 0.8327 GB, free: 10.11 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003896/0.356, allocations: 299.1 kB / 0.833 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of sort global known variables: time 3.61e-07/0.356, allocations: 3.938 kB / 0.833 GB, free: 9.809 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009293/0.357, allocations: 196 kB / 0.8332 GB, free: 9.617 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.0002044/0.3572, allocations: 107.2 kB / 0.8333 GB, free: 9.5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00371/0.3609, allocations: 1.543 MB / 0.8348 GB, free: 7.918 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3609, allocations: 0 / 0.8348 GB, free: 7.918 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.3622, allocations: 0.6294 MB / 0.8354 GB, free: 7.266 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007152/0.3629, allocations: 120 kB / 0.8356 GB, free: 7.152 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.3651, allocations: 1.046 MB / 0.8366 GB, free: 6.07 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000671/0.3658, allocations: 0.9132 MB / 0.8375 GB, free: 5.133 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0004719/0.3663, allocations: 147.2 kB / 0.8376 GB, free: 4.992 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.3664, allocations: 43.41 kB / 0.8376 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of SimCode: time 6.91e-07/0.3664, allocations: 0 / 0.8376 GB, free: 4.949 MB / 0.6544 GB Notification: Performance of Templates: time 0.02013/0.3865, allocations: 12.14 MB / 0.8495 GB, free: 8.883 MB / 0.67 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 gbode -lv LOG_STATS > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)